Linear Referencing Service

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

ParameterDetails

f

(Optional)

Specifies the response format. The default response format is html.

Values: html | json | pjson

Example usage

The following example demonstrates how to construct a URL for the "MyLRS" linear referencing service.

Use dark colors for code blocksCopy
1
https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer?f=json

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
  "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

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  "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" }
      ]
    }
  ]
}

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