Utility Network Layer

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

Description

This operation represents a utility network layer that is registered as a centerline layer in a linear referencing geodatabase.

Request parameters

ParameterDetails

f

(Optional)

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

Values: html | json | pjson

Example usage

URL for utility network layer ID 0.

Use dark colors for code blocksCopy
1
https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/utilityNetworkLayers/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
{
  "id": <layerId>,
  "name": "<layerName>",
  "type": "esriLRSUtilityNetworkLayer",
  "featureClassName" : "<featureClassName>",
  "isDataVersioned": <true | false>,
  "isBranchVersioned": <true | false>,
  "versionName": "<versionName>",
  "dateFormat": "<sqlDateFormat>",    // one of: esriLRSDateFormatStandard, esriLRSDateFormatFileGDB, esriLRSDateFormatOracle
  "lrs": {
    "id": "<id>",
    "name": "<name>"
  },
  "routeIdFieldName": "<routeIdFieldName>",
  "fromMeasureFieldName": "<fromMeasureFieldName>",
  "toMeasureFieldName": "<toMeasureFieldName>",
  "fields": [
    {
      "name": "<fieldName1>",
      "type": "<fildType1>",
      "alias": "<fieldAlias1>",
      "editable": <true | false>,
      "nullable": <true | false>,
      "defaultValue": <defaultValue1>,
      "domain": <domain1>
    },
    {
      "name": "<fieldName2>",
      "type": "<fildType2>",
      "alias": "<fieldAlias2>",
      "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
{
  "id": 4,
  "name": "Centerline",
  "type": "esriLRSUtilityNetworkLayer",
  "featureClassName" : "dbo.centerline",
  "isDataVersioned": true,
  "isBranchVersioned": true,
  "versionName": "sde.DEFAULT",
  "dateFormat": "esriLRSDateFormatStandard",
  "centerlineIdFieldName": "CenterlineId",
  "lrs": {
    "id": "1D4BBF68-DF27-4B6F-AF4B-C20B132F980E",
    "name": "MyLRS"
  },
  "routeIdFieldName": "RouteId",
  "fromMeasureFieldName": "FromMeasure",
  "toMeasureFieldName": "ToMeasure",
  "fields": [
    {
      "name": "OBJECTID",
      "type": "esriFieldTypeOID",
      "alias": "OBJECT ID",
      "editable": false,
      "nullable": false,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "CenterlineId",
      "type": "esriFieldTypeGUID",
      "alias": "Centerline ID",
      "length": 38,
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "GlobalID",
      "type": "esriFieldTypeGlobalID",
      "alias": "Global ID",
      "length": 38,
      "editable": false,
      "nullable": false,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "Creator",
      "type": "esriFieldTypeString",
      "alias": "Creator",
      "length": 255,
      "editable": false,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "Date_Created",
      "type": "esriFieldTypeDate",
      "alias": "Date Created",
      "length": 8,
      "editable": false,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "Editor",
      "type": "esriFieldTypeString",
      "alias": "Editor",
      "length": 255,
      "editable": false,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "Date_Edited",
      "type": "esriFieldTypeDate",
      "alias": "Date Edited",
      "length": 8,
      "editable": false,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "RouteId",
      "type": "esriFieldTypeString",
      "alias": "RouteId",
      "length": 255,
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "FromMeasure",
      "type": "esriFieldTypeDouble",
      "alias": "FromMeasure",
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "ToMeasure",
      "type": "esriFieldTypeDouble",
      "alias": "ToMeasure",
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "SHAPE",
      "type": "esriFieldTypeGeometry",
      "alias": "Shape",
      "editable": true,
      "nullable": true,
      "domain": null
    },
    {
      "name": "SHAPE.STLength()",
      "type": "esriFieldTypeDouble",
      "alias": "Shape Length",
      "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.