All Layers

URL:
https://<LinearReferencingService-url>/layers
Methods:
GET
Required Capability:
The ArcGIS Location Referencing license is required to use this resource.
Version Introduced:
10.6

Description

This operation contains the full details of all network, event, centerline, and other LRS-related layers in the map service.

Request parameters

ParameterDetails

f

(Optional)

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

Values: html | json | pjson

Example usage

URL for all layers.

Use dark colors for code blocksCopy
1
https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/layers

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
{
  "networkLayers": [
    {

    },
    {

    },
    ...
  ],
  "calibrationPointLayers": [
    {

    },
    ...
  ],
  "eventLayers": [
    {

    },
    {

    },
    ...
  ],
  "centerlineLayers": [
    {

    },
    ...
  ],
  "intersectionLayers": [
    {

    },
    ...
  ],
  "nonLRSLayers": [
    {

    },
    ...
  ],
  "redlineLayers": [
    {

    },
    ...
  ],
  "utilityNetworkLayers": [
    {

    },
    ...
  ]
}

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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
{
  "networkLayers": [
    {
      "id": 0,
      "name": "Pipes",
      "type": "esriLRSNetworkLayer",
      "lrsNetworkId": 1,
      "datasetName": "pipelines",
      "featureClassName": "sde.pipelines",
      "unitsOfMeasure" "esriMeters",
      "measurePrecision": 3,
      "isDataVersioned": true,
      "versionName": "sde.DEFAULT",
      "dateFormat": "esriLRSDateFormatStandard",
      "spatialReferenceInfo" : {
        "wkid": 26918,
        "xyResolution": 0.0001,
        "xyTolerance": 0.001,
        "mResolution": 0.0001,
        "mTolerance": 0.001
      },
      "routeIdFields": [ "RouteId" ],
      "routeIdSeparator": "",
      "compositeRouteIdFieldName": "RouteId",
      "fromDateFieldName": "FromDate",
      "toDateFieldName": "ToDate",
      "routeNameFieldName": "RouteName",
      "hasDominanceRules": false,
      "supportsLines": false,
      "lrs": {
        "id": "DFB23B7D-69D1-460F-B7E0-0FB190D23B96",
        "name": "LRS"
      },
      "eventLayers": [
        { "id": 2, "name": "Pressure", "type": "esriLRSLinearEventLayer" }
      ],
      "fields": [
        {
          "name": "RouteId",
          "type": "esriFieldTypeString",
          "alias": "Route ID",
          "editable": true,
          "nullable": true,
          "defaultValue": null,
          "domain": null
        },
        ...
      ]
    }
  ],
   "intersectionLayers": [
    {
      "id": 1,
      "name": "Intersections",
      "description": "",
      "type": "esriLRSIntersectionLayer",
      "isDataVersioned": true,
      "versionName": "dbo.DEFAULT",
      "dateFormat": "esriLRSDateFormatStandard",
      "datasetName": "Intersections",
      "featureClassName": "RoadsAndHighways.DBO.Intersections",
      "routeIdFieldName": "ROUTEID",
      "intersectionIdFieldName": "INTERSECTIONID",
      "intersectionNameFieldName": "INTERSECTIONNAME",
      "parentNetworkDescriptionFieldName": "RouteId",
      "fromDateFieldName": "FROMDATE",
      "toDateFieldName": "TODATE",
      "measureFieldName": null,
      "lrs": {
        "id": "fcb58eac-723b-4151-8a1a-419d0931adff",
        "name": "ALRS"
      },
      "parentNetwork": {
      "id": 12,
      "name": "AllRoutes",
      "type": "esriLRSNetworkLayer"
      },
      "intersectingLayers": [
        {
        "featureClassName": "Town_Boundary",
        "nameSeparator": "\u0026 Town:"
        }
      ],
      "fields": [
        {
          "name": "OBJECTID",
          "type": "esriFieldTypeOID",
          "alias": "OBJECTID",
          "editable": false,
          "nullable": false,
          "defaultValue": null,
          "domain": null
        },
        ...
      ]
    }
  ],
  "eventLayers": [
    {
      "id": 2,
      "name": "Pressure",
      "type": "esriLRSLinearEventLayer",
      "lrsNetworkId": 1,
      "datasetName": "Pressure",
      "featureClassName": "sde.Pressure",
      "unitsOfMeasure": "esriMeters",
      "measurePrecision": 3,
      "isDataVersioned": true,
      "versionName": "sde.DEFAULT",
      "dateFormat": "esriLRSDateFormatStandard",
      "spatialReferenceInfo": {
        "wkid": 26918,
        "xyResolution": 0.0001,
        "xyTolerance": 0.001,
        "mResolution": 0.0001,
        "mTolerance": 0.001
      },
      "eventIdFieldName": "EventId",
      "routeIdFieldName": "RouteId",
      "routeNameFieldName": null,
      "fromMeasureFieldName": "FromM",
      "toMeasureFieldName": "ToM",
      "fromDateFieldName": "FromDate",
      "toDateFieldName": "ToDate",
      "locErrorFieldName": "LocError",
      "canSpanRoutes": false,
      "hasReferentLocation": false,
      "lrs": {
        "id": "DFB23B7D-69D1-460F-B7E0-0FB190D23B96",
        "name": "LRS"
      },
      "parentNetwork": {
        "id": 0,
        "name": "Pipes",
        "type": "esriLRSNetworkLayer"
      },
      "fields": [
        {
          "name": "EventId",
          "type": "esriFieldTypeString",
          "alias": "Event ID",
          "length": 38
          "editable": true,
          "nullable": true,
          "defaultValue": null,
          "domain": null
        },
        ...
      ]
    }
  ],
  "centerlineLayers": [
    {
      "id": 3,
      "name": "Centerline",
      "type": "esriLRSCenterlineLayer",
      "isDataVersioned": true,
      "isBranchVersioned": true,
      "versionName": "sde.DEFAULT",
      "dateFormat": "esriLRSDateFormatStandard",
      "centerlineIdFieldName": "CenterlineId",
      "lrs": {
        "id": "DFB23B7D-69D1-460F-B7E0-0FB190D23B96",
        "name": "LRS"
      },
      "fields": [
        {
          "name": "CenterlineId",
          "type": "esriFieldTypeGUID",
          "alias": "Centerline Id",
          "length": 38,
          "editable": true,
          "nullable": true,
          "defaultValue": null,
          "domain": null
        },
        ...
      ]
    }
  ],
  "utilityNetworkLayers": [
    {
      "id": 3,
      "name": "Centerline",
      "type": "esriLRSUtilityNetworkLayer",
      "isDataVersioned": true,
      "isBranchVersioned": true,
      "versionName": "sde.DEFAULT",
      "dateFormat": "esriLRSDateFormatStandard",
      "routeIdFieldName": "RouteId",
      "fromMeasureFieldName": "FromMeasure",
      "toMeasureFieldName": "ToMeasure",
      "lrs": {
        "id": "DFB23B7D-69D1-460F-B7E0-0FB190D23B96",
        "name": "LRS"
      },
      "fields": [
        {
          "name": "RouteId",
          "type": "esriFieldTypeString",
          "alias": "Route Id",
          "length": 255,
          "editable": true,
          "nullable": true,
          "defaultValue": null,
          "domain": null
        },
        {
          "name": "FromMeasure",
          "type": "esriFieldTypeDouble",
          "alias": "From Measure",
          "editable": true,
          "nullable": true,
          "defaultValue": null,
          "domain": null
        },
        {
          "name": "ToMeasure",
          "type": "esriFieldTypeDouble",
          "alias": "To Measure",
          "editable": true,
          "nullable": true,
          "defaultValue": null,
          "domain": null
        },
        ...
      ]
    }
  ],
  "nonLRSLayers": [
    {
      "id": 4,
      "name": "RoadsAndHighways.DBO.CityIntersection",
      "description": "",
      "type": "esriNonLRSLayer",
      "featureClassName": "RoadsAndHighways.DBO.CityIntersection",
      "isDataVersioned": true,
      "versionName": "dbo.DEFAULT",
      "dateFormat": "esriLRSDateFormatStandard",
      "fields": [
        {
          "name": "OBJECTID",
          "type": "esriFieldTypeOID",
          "alias": "OBJECTID",
          "editable": false,
          "nullable": false,
          "defaultValue": null,
          "domain": null
        },
        ...
      ]
    }
  ],
  "calibrationPointLayers": [
    {
      "id": 5,
      "name": "RoadsAndHighways.DBO.Calibration_Point",
      "description": "",
      "type": "esriLRSCalibrationPointLayer",
      "isDataVersioned": true,
      "versionName": "dbo.DEFAULT",
      "dateFormat": "esriLRSDateFormatStandard",
      "routeIdFieldName": "RouteId",
      "networkFieldName": "NetworkId",
      "fromDateFieldName": "FromDate",
      "toDateFieldName": "ToDate",
      "measureFieldName": "Measure",
      "lrs": {
        "id": "fcb58eac-723b-4151-8a1a-419d0931adff",
        "name": "ALRS"
      },
      "fields": [
        {
          "name": "OBJECTID",
          "type": "esriFieldTypeOID",
          "alias": "OBJECTID",
          "editable": false,
          "nullable": false,
          "defaultValue": null,
          "domain": null
        },
        ...
      ]
    }
  ],
  "redlineLayers": [
    {
      "id": 7,
      "name": "RoadsAndHighways.DBO.Redline",
      "description": "",
      "type": "esriLRSRedlineLayer",
      "featureClassName": "RoadsAndHighways.DBO.Redline",
      "isDataVersioned": true,
      "versionName": "dbo.DEFAULT",
      "dateFormat": "esriLRSDateFormatStandard",
      "routeIdFieldName": "RouteId",
      "routeNameFieldName": "RouteName",
      "fromMeasureFieldName": "FromMeasure",
      "toMeasureFieldName": "ToMeasure",
      "effectiveDateFieldName": "EffectiveDate",
      "activityTypeFieldName": "ActivityType",
      "networkFieldName": "NetworkId",
      "lrs": {
        "id": "fcb58eac-723b-4151-8a1a-419d0931adff",
        "name": "ALRS"
      },
      "fields": [
        {
          "name": "OBJECTID",
          "type": "esriFieldTypeOID",
          "alias": "OBJECTID",
          "editable": false,
          "nullable": false,
          "defaultValue": null,
          "domain": null
        },
        ...
      ]
    }
  ]
}

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