URL:
https://<root>/System/RealitymappingTools/GPServer/QueryExifnfo
Methods:
GET
Version Introduced:
12.2

Description

Query Exif Info diagram

The QueryExifInfo operation is a service tool that reads the Exif header metadata from single or multiple images in shared data store. The Exif metadata is usually stored in drone image files. Some common Exif metadata information are GPS locations, camera model, focal length, and more.

Request parameters

ParameterDetails

inputImages

(Required)

The images to read. The value can be an image path, a folder path, or a list of image or folder paths. You can mix image and folder paths in one list.

The reality server setup account should be granted “read” permission to the image file’s location.

The image file paths can also be server data store path, see the example below.

Example:

Use dark colors for code blocksCopy
1
2
3
4
5
6
\\servername\drone\imagefolder
/cloudStores/S3DataStore/yvwd13
/fileShares/drones/SampleEXIF/YUN_0040.jpg

["/fileShares/drones/SampleEXIF/DJI_0002.JPG", "/ fileShares /drones/SampleEXIF/YUN_0040.jpg"]
["/cloudStores/S3DataStore/yvwd13", "/cloudStores/S3DataStore/BogotaFarm"]

Note: /fileShares/drones…... or /cloudStores/S3DataStore…… are the data store items registered with ArcGIS Server. You can see the list of registered data store items on ArcGIS Server manager -> Site -> Data Stores page.

f

The response format. The default response format is html.

Values: html | json | pjson

Response

When you submit a request, the service assigns a unique job ID for the transaction.

Syntax:

Use dark colors for code blocksCopy
1
2
3
4
{
"jobId": "<unique job identifier>",
"jobStatus": "<job status>"
}

After the initial request is submitted, you can use jobId to periodically review the status of the job and messages as described in Checking job status. Once the job has successfully completed, use jobId to retrieve the results. To track the status, you can make a request of the following form:

Use dark colors for code blocksCopy
1
https://<realitymapping tools url>/QueryExifInfo/jobs/<jobId>

When the status of the job request is esriJobSucceeded , you can access the results of the analysis by making a request of the following form:

Use dark colors for code blocksCopy
1
https://<realitymapping tools url>/QueryExifInfo/jobs/<jobId>/results/outExifInfo?token=<your token>&f=json

The result is a JSON object keyed by image path. For each image, the object includes the image dimensions, cameraInfo, exif, gps, and xmp properties, and the long, lat, and alt coordinates with the spatialReference of the UTM zone. If no Exif metadata is found, the result is the string no Exif Info found.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  "paramName": "outExifInfo",
  "dataType": "GPString",
  "value": {
    "/cloudStores/S3DataStore/yvwd13/YUN_0004.JPG": {
      "acquisitionDate": "2018-04-14",
      "cameraInfo": {"cols": 5472, "rows": 3648, "model": "E90", "make": "Yuneec"},
      "exif": {"FocalLength": 8.3, "PixelXDimension": 5472, "PixelYDimension": 3648},
      "gps": {},
      "xmp": {},
      "long": -117.0997,
      "lat": 34.0079,
      "alt": 725.37,
      "spatialReference": 32611
    }
  }
}

Example usage

Below is a sample URL for QueryExifInfo .

Use dark colors for code blocksCopy
1
https://services.myserver.com/arcgis/rest/services/System/RealityMappingTools/GPServer/QueryExifInfo/submitJob

JSON request example

The following request reads the Exif metadata of the images in a folder:

Use dark colors for code blocksCopy
1
2
inputImages="/fileShares/drones/flight1"&
f=json

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.