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

Describe

The MergeMissions operation is a service tool that merges multiple missions to create a new mission for a reality mapping project.

Request parameters

ParameterDetails

missionList

(Required)

The list of itemIds of the image collections whose missions to be merged.

Syntax: JSON object.

Use dark colors for code blocksCopy
1
{"itemIds": [<portal item id>, <portal item id>, <portal item id>]}

missionDefinition

(Required)

The object definition for the new Reality Mapping mission item that will be created.

Example:

Use dark colors for code blocksCopy
1
2
3
4
5
6
{"name": "Mission 1",
 "settings": {"sensorType":"Drone",
            "scenarioType":"DRONE",
            "adjustSettings":{},
            "outputProducts": ["dsm", "dtm", "ortho", "3dMesh", "trueOrtho", "pointCloud"],
            "processingSettings":{}}}

outputCollectionName

(Required)

The output image collection name or URL. As with raster analysis services, the service can be an existing multitenant service URL, or this service tool can create it. If the image collection is created by the service tool, it will be created in the geodatabase. The geodatabase could either be a file geodatabase in the file share type of raster store or an enterprise database configured as raster store.

Syntax: A JSON object supports three, case sensitive keys: itemId , url , and uri .

Example:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
//Portal Item ID
{"itemId": <portal item id>}

//Image Service URL
{"url": <image service url}

//Service Properties
{"serviceProperties":{"name":"testrasteranalysis",
  "serviceUrl":"https://<server name>/server/rest/services/Hosted/testrasteranalysis/ImageServer"},
  "itemProperties":{"itemId":"8cfbd3ec25584d0d8f4ed23b8ff7c43b", "folderId", "sdfwerfbd3ec25584d0d8f4",: }}

context

Contains additional settings that affect task execution. The following setting is available:

Output Spatial Reference (outSR ) - The image collection will be projected into the output spatial reference. The outSR setting is required if you want the service to create the mosaic dataset and hosted image service.

Use dark colors for code blocksCopy
1
{"outSR": {spatial reference}}

f

The response format. The default response format is html.

Values: html | json | pjson

Response

When you submit a request, the task 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>/MergeMissions/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>/MergeMissions/jobs/<jobId>/results/outProducts?token=<your token>&f=json

Example usage

The following is a sample URL for MergeMissions :

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

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