- URL:
- https://<network-layer-url>/appendRoutes
- Methods:
GET
- Required Capability:
- The ArcGIS Location Referencing license is required to use this resource.
- Version Introduced:
- 10.7
Description
This operation appends routes from an input polyline into an LRS Network.
Request parameters
Parameter | Details |
---|---|
(Optional) |
Specifies the response format. The default response format is Values: |
| The item ID of the uploaded source feature class. The item ID is generated when the source is uploaded to the server. The file geodatabase must be zipped before upload and must contain only one source feature class. The following hierarchy must be maintained in the
Syntax:
Example:
|
| The field in the input polyline feature class that will be mapped to the LRS Network route ID. The field type must match the Syntax:
Example:
|
| The field in the input polyline feature class that will be mapped as the LRS Network route name. The field must be a string field, and the field length must be shorter than or equal to the length of the target route name field. Syntax:
Example:
|
| A date field in the input polyline feature class that will be mapped as the LRS Network from date. Syntax:
Example:
|
| A date field in the input polyline feature class that will be mapped as the LRS Network to date. Syntax:
Example:
|
(Optional) | The input polyline feature class that will be mapped as the LRS Network line ID. This parameter is only used if the target is an LRS line network. The field type must match the Syntax:
Example:
|
(Optional) | The input polyline feature class that will be mapped as the LRS Network line ID. This parameter is only used if the target is an LRS line network. The field type must match the Syntax:
Example:
|
(Optional) | Long integer field in the input polyline feature class that will be mapped as the LRS Network line order. This parameter is only used if the target is an LRS line network. Syntax:
Example:
|
| Controls how the attribute information in the fields of the source is transferred to the target layer. Syntax:
Example:
|
| Specifies how appended routes with measure or temporality overlap with identical route IDs as target network records are loaded into the network feature class.
Syntax:
Values: |
| Specifies whether route ID or route name will be used as target network records are loaded into the network feature class. This parameter will be ignored and default to use
Syntax:
Values: |
(Optional) | Specifies whether routes will be appended using existing centerline or if new centerlines will be created for the appended routes. This value is set to Syntax:
Values: |
(Optional) |
Specifies the geodatabase version to use. If this parameter is not specified, the published map's version is used. Syntax:
Example:
|
(Optional) |
Set by a client during long transaction editing on a branch version. The Syntax:
Example:
|
(Optional) |
Specifies whether the response reports the time edits that were applied. If Values: |
(Optional) |
Returns features edited due to the geodatabase behavior that results from applying the edits. For example, if a feature is deleted and it is the origin in a composite relationship, the destination feature is automatically deleted from the geodatabase. If Results returned from Service-level
The
The response includes no Edited features are returned in the spatial reference of the feature service as defined by the services The default value is Values: |
Example usage
The following is a sample URL for adding route records.
URL for adding route records in the target network from the source feature class:
https://sampleserver/server/rest/services/LRSService/MapServer/exts/LRServer/networkLayers/1/appendRoutes?returnServiceEditsOption=originalAndCurrentFeatures&returnEditMoment=true&uploadItemId=idec5bf57-1649-44ce-bac1-19bd0872a026&fieldMap=[{"sourceField":"SourceFieldName1","targetField":"TargetFieldName1"},{"sourceField":"SourceFieldName1","targetField":"TargetFieldName1"}]&loadType=add&loadField=routeId&considerExistingCenterlines=false&routeIdFieldName=ROUTEID&routeNameFieldName=ROUTENAME&fromDateFieldName=FROMDATE&toDateFieldName=TODATE&lineIdFieldName=LINEID&lineNameFieldName=LINENAME&lineOrderFieldName=ORDERID&f=json&gdbVersion=sde.DEFAULT&sessionId={FA6E2656-AD4E-4FDD-A484-80479C53F231}
JSON Response syntax
Query this job URL to get progress updates and results of the operation.
{
"statusURL": "<jobIdURL>"
}
JSON Response example
The following is an example of a successful response:
{
"statusURL": "https://sampleserver/arcgis/rest/services/LRSService/MapServer/exts/LRServer/jobs/j1e84dac5934d44c4a52d0b6d4b22de09"
}