- 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
Parameter | Details |
---|---|
(Optional) |
Specifies the response format. The default response format is Values: |
Example usage
URL for network layer ID 0.
https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/networkLayers/0
JSON response syntax
{
"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
{
"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
}
]
}