Network Layer

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

Description

This operation represents a network layer in a linear referencing geodatabase. A network layer can contain linear route features such as roads or pipelines.

Request parameters

ParameterDetails

f

(Optional)

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

Values: html | json | pjson

Example usage

URL for network layer ID 0.

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

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
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
{
  "id": <layerId>,
  "name": "<layerName>",
  "type": "<layerType>",  // esriLRSNetworkLayer
  "lrsNetworkId": <networkId>,
  "datasetName": "<datasetName>",  // the network name registered in the LRS dataset
  "featureClassName": "<featureClassName>",  // the backing feature class name
  "unitsOfMeasure": "<units>",
  "measurePrecision": <precision>,
  "isDataVersioned": <true | false>,
  "isBranchVersioned": <true | false>,
  "versionName": "<versionName>",
  "dateFormat": "<sqlDateFormat>",  //one of: esriLRSDateFormatStandard, esriLRSDateFormatFileGDB, esriLRSDateFormatOracle
  "spatialReferenceInfo": {
    // spatial reference properties of the feature data
    "wkid": <wkid>,
    "wkt": "<wkt>",  // WKT is included only when there is no WKID available
    "xyResolution": <xyResolution>,
    "xyTolerance": <xyTolerance>,
    "mResolution": <mResolution>,
    "mTolerance": <mTolerance>
  },
  "routeIdFields": ["<fieldName1>", "<fieldName2>"],
  "routeIdFieldsInfo": [
    {
      "name": "<fieldName1>",
      "fixedLength": <length1>,
      "isFixedLength": <true | false>,
      "paddingCharacter": "<paddingCharacter1>",
      "paddingPlace": "<esriLRSFieldPaddingLeftAndRight | esriLRSFieldPaddingLeft | esriLRSFieldPaddingRight | esriLRSFieldPaddingNone>",
      "isPaddingEnabled": <true | false>,
      "isPadNullValues": <true | false>,
      "isNullAllowed": <true | false>,
      "allowAnyLookupValue": <true | false>,
      "hasLookupTable": <true | false>
    },
    {
      "name": "<fieldName2>",
      "fixedLength": <length2>,
      "isFixedLength": <true | false>,
      "paddingCharacter": "<paddingCharacter2>",
      "paddingPlace": "<esriLRSFieldPaddingLeftAndRight | esriLRSFieldPaddingLeft | esriLRSFieldPaddingRight | esriLRSFieldPaddingNone>",
      "isPaddingEnabled": <true | false>,
      "isPadNullValues": <true | false>,
      "isNullAllowed": <true | false>,
      "allowAnyLookupValue": <true | false>,
      "hasLookupTable": <true | false>
    },
    ...
  ],
  "routeIdSeparator": "<separator>",
  "routeIdFieldName": "<fieldName>",
  "fromDateFieldName": "<fieldName>",
  "toDateFieldName": "<fieldName>",
  "routeNameFieldName": "<fieldName>",
  "hasDominanceRules": <true | false>,
  "autoGenerateRouteId": false,
  "autoGenerateRouteName": <true | false>,

  // line support properties
  "supportsLines": <true | false>,
  "lineIdFieldName": "<fieldName>",
  "lineNameFieldName": "<fieldName>",
  "lineOrderFieldName": "<fieldName>",
  "isDerived": <true | false>,
  "derivedFromNetworkId": <lrsNetworkId from derived network>,
  "gapCalibrationType": "<esriGapCalibrationTypeSteppingIncrement | esriGapCalibrationTypeAddingIncrement | esriGapCalibrationTypeAddingEuclideanDistance>",
  "gapCalibrationOffset": <gapCalibrationOffset>,
  "updateRouteMeasuresInCartoRealign": <true | false>,
  "lrs": {
    "id": "<id>",
    "name": "<name>"
  },
  "eventLayers": [
    { "id": <layerId1>, "name": "<layerName1>", "type": "<layerType1>" },
    { "id": <layerId2>, "name": "<layerName2>", "type": "<layerType2>" },
    ...
  ],
  "intersectionLayers": [
    { "id": <layerId1>, "name": "<layerName1>", "type": "<layerType1>" },
    { "id": <layerId2>, "name": "<layerName2>", "type": "<layerType2>" },
    ...
  ],
  "fields": [
    {
      "name": "<fieldName1>",
      "type": "<fieldType1>",
      "alias": "<fieldAlias1>",
      "length": <length1>,
      "editable": <true | false>,
      "nullable": <true | false>,
      "defaultValue": <defaultValue1>,
      "domain": <domain1>
    },
    {
      "name": "<fieldName2>",
      "type": "<fieldType2>",
      "alias": "<fieldAlias2>",
      "length": <length2>,
      "editable": <true | false>,
      "nullable": <true | false>,
      "defaultValue": <defaultValue2>,
      "domain": <domain2>
    },
    ...
  ]
}

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
{
  "id": 0,
  "name": "Pipes",
  "type": "esriLRSNetworkLayer",
  "lrsNetworkId": 1,
  "datasetName": "pipelines",
  "featureClassName": "sde.pipelines",
  "unitsOfMeasure": "esriMeters",
  "measurePrecision": 3,
  "isDataVersioned": true,
  "isBranchVersioned": true,
  "versionName": "sde.DEFAULT",
  "dateFormat": "esriLRSDateFormatStandard",
  "spatialReferenceInfo": {
    "wkid": 26918,
    "xyResolution": 0.0001,
    "xyTolerance": 0.001,
    "mResolution": 0.0001,
    "mTolerance": 0.001
  },
  "routeIdFields": ["RouteSystem", "RouteNumber"],
  "routeIdFieldsInfo": [
    {
      "name": "RouteSystem",
      "fixedLength": 2,
      "isFixedLength": true,
      "paddingCharacter": " ",
      "paddingPlace": "esriLRSFieldPaddingLeft",
      "isPaddingEnabled": false,
      "isPadNullValues": false,
      "isNullAllowed": false,
      "allowAnyLookupValue": false,
      "hasLookupTable": true
   },
   {
      "name": "RouteNumber",
      "fixedLength": 15,
      "isFixedLength": true,
      "paddingCharacter": " ",
      "paddingPlace": "esriLRSFieldPaddingLeft",
      "isPaddingEnabled": true,
      "isPadNullValues": false,
      "isNullAllowed": false,
      "allowAnyLookupValue": false,
      "hasLookupTable": false
    }
  ],
  "routeIdSeparator": "",
  "routeIdFieldName": "RouteId",
  "fromDateFieldName": "FromDate",
  "toDateFieldName": "ToDate",
  "routeNameFieldName": "RouteName",
  "hasDominanceRules": false,
  "autoGenerateRouteId": false,
  "autoGenerateRouteName": false,
  "supportsLines": true,
  "lineIdFieldName": "LineId",
  "lineNameFieldName": "LineName",
  "lineOrderFieldName": "LineOrder",
  "isDerived": true,
  "derivedFromNetworkId": 1,
  "gapCalibrationType": "esriGapCalibrationTypeSteppingIncrement",
  "gapCalibrationOffset": 0.001,
  "updateRouteMeasuresInCartoRealign": false,
  "lrs": {
    "id": "DFB23B7D-69D1-460F-B7E0-0FB190D23B96",
    "name": "LRS"
  },
  "eventLayers": [
    { "id": 1, "name": "Valves", "type": "esriLRSPointEventLayer" },
    { "id": 2, "name": "Pressure", "type": "esriLRSLinearEventLayer" }
  ],
  "intersectionLayers": [
    { "id": 3, "name": "AllRoutesWithAllRoutesIntersection", "type": "esriLRSIntersectionLayer" }
  ],
  "fields": [
    {
      "name": "ObjectID",
      "type": "esriFieldTypeOID",
      "alias": "Object ID",
      "editable": false,
      "nullable": false,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "RouteId",
      "type": "esriFieldTypeString",
      "alias": "Route ID",
      "length": "38",
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "RouteName",
      "type": "esriFieldTypeString",
      "alias": "Route Name",
      "length": 100,
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "FromDate",
      "type": "esriFieldTypeDate",
      "alias": "From Date",
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "ToDate",
      "type": "esriFieldTypeDate",
      "alias": "To Date",
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "LineId",
      "type": "esriFieldTypeString",
      "alias": "Line ID",
      "length": 38,
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "LineName",
      "type": "esriFieldTypeString",
      "alias": "Line Name",
      "length": 100,
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "LineOrder",
      "type": "esriFieldTypeInteger",
      "alias": "Line Order",
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "Desc",
      "type": "esriFieldTypeString",
      "alias": "Description",
      "length": 200,
      "editable": true,
      "nullable": true,
      "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.