Skip To Content
ArcGIS Developers
Dashboard

Centerline Layer

Description

License:

The ArcGIS Location Referencing license is required to use this resource.

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

Description: Optional parameter to specify the response format. The default response format is html.

Values: html | json

Example usage

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

https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/centerlineLayers/4

JSON response syntax

{
  "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

{
  "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
    }
  ]
}