Centerline Layer

URL:
https://<LinearReferencingService-url>/centerlineLayers/<layerId>
Methods:
GET
Operations:
Query Route Associations, Remove Overlapping Centerlines
Required Capability:
The ArcGIS Location Referencing license is required to use this resource.
Version Introduced:
10.7

Description

This operation represents a centerline layer in a linear referencing geodatabase. A feature in the centerline layer represents the geometry for one or multiple routes across all networks in an LRS.

Request parameters

ParameterDetails

f

(Optional)

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

Values: html | json | pjson

Example usage

A query for a centerline layer whose ID in the service is 4.

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

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
{
  "id": <layerId>,
  "name": "<layerName>",
  "type": "esriLRSCenterlineLayer",
  "isDataVersioned": <true | false>,
  "isBranchVersioned": <true | false>,
  "versionName": "<versionName>",
  "dateFormat": "<sqlDateFormat>",    // one of: esriLRSDateFormatStandard, esriLRSDateFormatFileGDB, esriLRSDateFormatOracle
  "centerlineIdFieldName": "<centerlineIdFieldName>",
  "lrs": {
    "id": "<id>",
    "name": "<name>"
  },
  "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
{
  "id": 4,
  "name": "Centerline",
  "type": "esriLRSCenterlineLayer",
  "isDataVersioned": true,
  "isBranchVersioned": true,
  "versionName": "sde.DEFAULT",
  "dateFormat": "esriLRSDateFormatStandard",
  "centerlineIdFieldName": "CenterlineId",
  "lrs": {
    "id": "1D4BBF68-DF27-4B6F-AF4B-C20B132F980E",
    "name": "MyLRS"
  },
  "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": "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.