- URL:
- https://<MapService-url>/exts/LRServer
- Methods:
GET
- Operations:
- Apply Edits, Create Version, Delete Version, Reconcile Version, Query Edit Log
- Child Resources:
- All Layers, Calibration Point Layer, Centerline Sequence Layer, Get Calibration Configuration, Get Cartographic Realignment Configuration, Non-LRS Layer, Redline Layer, Set Calibration Configuration, Set Cartographic Realignment Configuration, Utility Network Layer, Centerline Layer, Event Layer, Intersection Layer, Locks, Network Layer
- Required Capability:
- The ArcGIS Location Referencing license is required to use this resource.
- Version Introduced:
- 10.6
Description
Linear referencing services provide access to the data, metadata, and behaviors of a linear referencing system (LRS) in a geodatabase. The root linear referencing resource contains lists of the LRS related layers and LRS workspaces in your published map.
Request parameters
Parameter | Details |
---|---|
(Optional) |
Specifies the response format. The default response format is Values: |
Example usage
The following example demonstrates how to construct a URL for the "MyLRS" linear referencing service.
https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer?f=json
JSON Response syntax
{
"currentVersion": <currentVersion>,
"capabilities": "<capabilities>",
"networkLayers": [
{ "id": <layerId1>, "name": "<layerName1>", "type": "<layerType1>", },
{ "id": <layerId2>, "name": "<layerName2>", "type": "<layerType2>", },
...
],
"eventLayers": [
{ "id": <layerId1>, "name": "<layerName1>", "type": "<layerType1>", },
{ "id": <layerId2>, "name": "<layerName2>", "type": "<layerType2>", },
...
],
"centerlineLayers": [
{ "id": <layerId1>, "name": "<layerName1>", "type": "<layerType1>", }
],
"utilityNetworkLayers": [
{ "id": <layerId1>, "name": "<layerName1>", "type": "<layerType1>", }
],
"editLogTableFields": {
"objectIdFieldName": "<objectIdFieldName>",
"transactionIdFieldName": "<transactionIdFieldName>",
"transactionDateFieldName": "<transactionDateFieldName>",
"userNameFieldName": "<userNameFieldName>",
"activityTypeFieldName": "<activityTypeFieldName>",
"lrsIdFieldName": "<lrsIdFieldName>",
"networkIdFieldName": "<networkIdFieldName>",
"routeIdFieldName": "<routeIdFieldName>",
"toRouteIdFieldName": "<toRouteIdFieldName>",
"fromDateFieldName": "<fromDateFieldName>",
"toDateFieldName": "<toDateFieldName>",
"editDataFieldName": "<editDataFieldName>",
"processedFieldName": "<processedFieldName>",
"processedTimeFieldName": "<processedTimeFieldName>",
"processedUserFieldName": "<processedUserFieldName>",
"processedVersionFieldName": "<processedVersionFieldName>"
},
"lrs": [
{
"id": "<id>",
"name": "<name>",
"description": "<description>",
"versions": [ // only for versioned LRS workspaces
{
"name": "<versionName1>",
"description": "<description1>",
"access": "<access1>", // one of: esriVersionAccessPublic, esriVersionAccessProtected, esriVersionAccessPrivate
"parentVersion": "<parentVersion1>"
},
{
"name": "<versionName2>",
"description": "<description2>",
"access": "<access2>",
"parentVersion": "<parentVersion2>"
},
...
],
},
...
]
}
JSON Response example
{
"currentVersion": ,
"capabilities": "EventEditing",
"networkLayers": [
{ "id": 0, "name": "Pipes", "type": "esriLRSNetworkLayer" }
],
"eventLayers": [
{ "id": 1, "name": "Valves", "type": "esriLRSPointEventLayer" },
{ "id": 2, "name": "Pressure", "type": "esriLRSLinearEventLayer" }
],
"centerlineLayers": [
{ "id": 3, "name": "Centerline", "type": "esriLRSCenterlineLayer" }
],
"utilityNetworkLayers": [
{ "id": 3, "name": "Centerline", "type": "esriLRSUtilityNetworkLayer" }
],
"editLogTableFields": {
"objectIdFieldName": "ObjectId",
"transactionIdFieldName": "TransactionId",
"transactionDateFieldName": "TransactionDate",
"userNameFieldName": "UserName",
"activityTypeFieldName": "ActivityType",
"lrsIdFieldName": "LrsId",
"networkIdFieldName": "NetworkId",
"routeIdFieldName": "RouteId",
"toRouteIdFieldName": "ToRouteId",
"fromDateFieldName": "FromDate",
"toDateFieldName": "ToDate",
"editDataFieldName": "EditData",
"processedFieldName": "Processed",
"processedTimeFieldName": "ProcessedTime",
"processedUserFieldName": "ProcessedUser",
"processedVersionFieldName": "ProcessedVersion"
},
"lrs": [
{
"id": "DFB23B7D-69D1-460F-B7E0-0FB190D23B96",
"name": "LRS",
"description": "",
"versions": [
{ "name": "sde.DEFAULT", "description": "Default version", "access": "esriVersionAccessPublic", "parentVersion": null },
{ "name": "sde.QC", "description": "QC checks", "access": "esriVersionAccessPublic", "parentVersion": "sde.DEFAULT" }
]
}
]
}