- URL:
- https://<network-layer-url>/updateMeasuresFromLRS
- Methods:
GET
- Required Capability:
- Network Editing
- Version Introduced:
- 10.8
Description
This operation populates or updates the route and measure attributes on any point or line features, including Utility Network features such as pipes, devices, and junctions, or LRS features such as events and intersections. The attributes that will be updated include route ID, route name (if configured), and measures.
Request parameters
Parameter | Details |
---|---|
(Optional) |
Specifies the response format. The default response format is Values: |
| The epoch date used to define the temporal view of the network for collecting the route and measure values. Syntax:
Example:
|
| The layer ID value for the feature service layer that includes the route ID and measure fields to update based on the feature geometry relative to routes in the specified LRS Network. Syntax:
Example:
|
(Optional) | Specifies a list of object IDs or a Syntax:
Or
Example:
|
| The name of the Input Layer field that contains the route ID value. Syntax:
Example:
|
(Optional) | The name of the Input Layer field that contains the to route ID value. Syntax:
Example:
|
| The name of the Input Layer field that contains the measure value for point features, or the from measure value for polyline features. Syntax:
Example:
|
| The name of the Input Layer field that contains the to measure value for polyline features. Syntax:
Example:
|
(Optional) | The name of the Input Layer field that contains the route name value. Syntax:
Example:
|
(Optional) | The name of the Input Layer field that contains the to route name value. Syntax:
Example:
|
(Optional) | The maximum distance for the input features from the route to be populated with route and measure information. The |
(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 The default value is Edited features are returned in the spatial reference of the feature service as defined by the services Values: |
Example usage
Example 1
URL for updating measures for all features on the polyline feature layer:
https://sampleserver/server/rest/services/NTM/MapServer/exts/LRServer/networkLayers/5/updateMeasuresFromLRS/?lrsDate=1539043200000¢erlineLayerId=8&inputLayerId=3&routeIdFieldName=ROUTEID&fromMeasureFieldName=FROMMEASURE&toMeasureFieldName=TOMEASURE&gdbVersion=sde.DEFAULT&sessionId=%7b1DBCA670-A0D2-48EA-AB9F-56E2DFB4E43B%7d&returnServiceEditsOption=originalAndCurrentFeatures&returnEditMoment=true&f=json
Example 2
URL for updating measures for selected features on the polyline feature layer:
https://sampleserver/server/rest/services/NTM/MapServer/exts/LRServer/networkLayers/5/updateMeasuresFromLRS/?lrsDate=1539043200000¢erlineLayerId=8&inputLayerId=3&inputLayerDefinition=%7b%22objectIds%22%3a%5b8%2c9%5d%7d&routeIdFieldName=ROUTEID&fromMeasureFieldName=FROMMEASURE&toMeasureFieldName=TOMEASURE&gdbVersion=sde.DEFAULT&sessionId=%7b1DBCA670-A0D2-48EA-AB9F-56E2DFB4E43B%7d&returnServiceEditsOption=originalAndCurrentFeatures&returnEditMoment=true&f=json
Example 3
URL for updating measures for features on the polyline feature layer that meet a definition query:
https://sampleserver/server/rest/services/NTM/MapServer/exts/LRServer/networkLayers/5/updateMeasuresFromLRS/?lrsDate=1539043200000¢erlineLayerId=8&inputLayerId=3&inputLayerDefinition=%7b%22where%22%3a%22%20(%20NAME%20IS%20NOT%20NULL%20)%22%7d&routeIdFieldName=ROUTEID&fromMeasureFieldName=FROMMEASURE&toMeasureFieldName=TOMEASURE&gdbVersion=sde.DEFAULT&sessionId=%7b1DBCA670-A0D2-48EA-AB9F-56E2DFB4E43B%7d&returnServiceEditsOption=originalAndCurrentFeatures&returnEditMoment=true&f=json
Example 4
URL for updating measures for selected features on the polyline feature layer using search tolerance:
https://sampleserver/server/rest/services/NTM/MapServer/exts/LRServer/networkLayers/5/updateMeasuresFromLRS/?lrsDate=1539043200000¢erlineLayerId=8&inputLayerId=3&inputLayerDefinition=%7b%22objectIds%22%3a%5b8%2c9%5d%7d&routeIdFieldName=ROUTEID&torouteIdFieldName=TOROUTEID&fromMeasureFieldName=FROMMEASURE&toMeasureFieldName=TOMEASURE&routeNameFieldName=ROUTENAME&toRouteNameFieldName=TOROUTENAME&searchTolerance=0.1&gdbVersion=sde.DEFAULT&sessionId=%7b1DBCA670-A0D2-48EA-AB9F-56E2DFB4E43B%7d&returnServiceEditsOption=originalAndCurrentFeatures&returnEditMoment=true&f=json
JSON response syntax
Query this job URL to get progress updates and results of the operation.
{
"statusURL": "<jobIdURL>"
}
JSON response example
{
"statusURL": "https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/jobs/j3c0a00b4314349eb8e4ff6ff7ac2db5d"
}