Redline Layer

URL:
https://<LinearReferencingService-url>/redlineLayers/<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 redline layer in a linear referencing geodatabase. A redline layer is used for proposing changes to a route network. Redline features can define the shape of a route modification either by sketching or through the use of accurate source geometry such as CAD data.

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
{
  "id": <layerId>,
  "name": "<layerName>",
  "type": "<layerType>",  // esriLRSRedlineLayer
  "isDataVersioned": <true | false>,
  "isBranchVersioned": <true | false>,
  "versionName": "<versionName>",
  "dateFormat": "<sqlDateFormat>",  // one of: esriLRSDateFormatStandard, esriLRSDateFormatFileGDB, esriLRSDateFormatOracle
  "routeIdFieldName": "<fieldName>",
  "routeNameFieldName": "<fieldName>",
  "fromMeasureFieldName": "<fieldName>",
  "toMeasureFieldName": "<fieldName>",
  "effectiveDateFieldName": "<fieldName>",
  "activityTypeFieldName": "<fieldName>",
  "networkFieldName": "<fieldName>",
  "lrs": {
    "id": "<id>",
    "name": "<name>"
  },
  "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
{
  "id": 3,
  "name": "Redline",
  "type": "esriLRSRedlineLayer",
  "isDataVersioned": true,
  "isBranchVersioned": true,
  "versionName": "sde.DEFAULT",
  "dateFormat": "esriLRSDateFormatStandard",
  "routeIdFieldName": "route_id",
  "routeNameFieldName": "route_name",
  "fromMeasureFieldName": "from_meas",
  "toMeasureFieldName": "to_meas",
  "effectiveDateFieldName": "effective_date",
  "activityTypeFieldName": "act_type",
  "networkFieldName": "network",
  "lrs": {
    "id": "DFB23B7D-69D1-460F-B7E0-0FB190D23B96",
    "name": "DOT_LRS"
  },
  "fields": [
    {
      "name": "objectid",
      "type": "esriFieldTypeOID",
      "alias": "Object ID",
      "editable": false,
      "nullable": false,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "route_id",
      "type": "esriFieldTypeString",
      "alias": "Route ID",
      "length": 50,
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "route_name",
      "type": "esriFieldTypeString",
      "alias": "Route Name",
      "length": 100,
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "from_meas",
      "type": "esriFieldTypeDouble",
      "alias": "From Measure",
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "to_meas",
      "type": "esriFieldTypeDouble",
      "alias": "To Measure",
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "effective_date",
      "type": "esriFieldTypeDate",
      "alias": "Effective Date",
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": null
    },
    {
      "name": "act_type",
      "type": "esriFieldTypeSmallInteger",
      "alias": "Activity Type",
      "editable": true,
      "nullable": true,
      "defaultValue": null,
      "domain": {
        "type": "codedValue",
        "name": "dActivityType",
        "codedValues": [
          { "name": "Create Route", "code": 1 },
          { "name": "Calibrate Route", "code": 2 },
          { "name": "Retire Route", "code": 4 },
          { "name": "Extend Route", "code": 5 },
          { "name": "Reassign Route", "code": 6 },
          { "name": "Realign Route", "code": 7 },
          { "name": "Realign Overlapping Route", "code": 9 },
          { "name": "Cartographic Realign Route", "code": 12 }
         ]
      }
    },
    {
      "name": "shape",
      "type": "esriFieldTypeGeometry",
      "alias": "Shape",
      "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.