Skip To Content

All Layers

Available with Location Referencing license.

Description

License:

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

This operation contains the full details of all network, event, centerline, and other LRS-related layers in the map service.

Tip:

If you are building an app that will retrieve the details of more than one network or event layer, it is more efficient to make one request to this resource, rather than making multiple requests to the individual layer resources.

Request parameters

ParameterDetails
f

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

Values: html | json

Example usage

URL for all layers.

https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/layers

JSON Response syntax

{
  "networkLayers": [
    {
      <networkLayer1>
    },
    {
      <networkLayer2>
    },
    ...
  ],
  "calibrationPointLayers": [
    {
      <calibrationPointLayer>
    },
    ...
  ],
  "eventLayers": [
    {
      <eventLayer1>
    },
    {
      <eventLayer2>
    },
    ...
  ],
  "centerlineLayers": [
    {
      <centerlineLayer>
    },
    ...
  ],
  "intersectionLayers": [
    {
      <intersectionLayer>
    },
    ...
  ],
  "nonLRSLayers": [
    {
      <nonLRSLayer>
    },
    ...
  ],
  "redlineLayers": [
    {
      <redlineLayer>
    },
    ...
  ],
  "utilityNetworkLayers": [
    {
      <utilityNetworkLayer>
    },
    ...
  ]
}

JSON Response example


{
  "networkLayers": [
    {
      "id" : 0,
      "name" : "Pipes",
      "type" : "esriLRSNetworkLayer",
      "lrsNetworkId" : 1,
      "datasetName" : "pipelines",
      "featureClassName" : "sde.pipelines",
      "unitsOfMeasure" : "esriMeters",
      "measurePrecision" : 3,
      "isDataVersioned" : true,
      "versionName" : "sde.DEFAULT",
      "dateFormat" : "esriLRSDateFormatStandard",
      "spatialReferenceInfo" : {
        "wkid" : 26918,
        "xyResolution" : 0.0001,
        "xyTolerance" : 0.001,
        "mResolution" : 0.0001,
        "mTolerance" : 0.001
      },
      "routeIdFields" : [ "RouteId" ],
      "routeIdSeparator" : "",
      "compositeRouteIdFieldName" : "RouteId",
      "fromDateFieldName" : "FromDate",
      "toDateFieldName" : "ToDate",
      "routeNameFieldName" : "RouteName",
      "hasDominanceRules" : false,
      "supportsLines" : false,
      "lrs" : {
        "id" : "DFB23B7D-69D1-460F-B7E0-0FB190D23B96",
        "name" : "LRS"
      },
      "eventLayers" : [
        { "id" : 2, "name" : "Pressure", "type" : "esriLRSLinearEventLayer" }
      ],
      "fields" : [
        {
          "name" : "RouteId",
          "type" : "esriFieldTypeString",
          "alias" : "Route ID",
          "editable" : true,
          "nullable" : true,
          "defaultValue" : null,
          "domain" : null
        },
        ...
      ]
    }
  ],
   "intersectionLayers": [
    {
      "id": 1,
      "name": "Intersections",
      "description": "",
      "type": "esriLRSIntersectionLayer",
      "isDataVersioned": true,
      "versionName": "dbo.DEFAULT",
      "dateFormat": "esriLRSDateFormatStandard",
      "datasetName": "Intersections",
      "featureClassName": "RoadsAndHighways.DBO.Intersections",
      "routeIdFieldName": "ROUTEID",
      "intersectionIdFieldName": "INTERSECTIONID",
      "intersectionNameFieldName": "INTERSECTIONNAME",
      "parentNetworkDescriptionFieldName": "RouteId",
      "fromDateFieldName": "FROMDATE",
      "toDateFieldName": "TODATE",
      "measureFieldName": null,
      "lrs": {
        "id": "fcb58eac-723b-4151-8a1a-419d0931adff",
        "name": "ALRS"
      },
      "parentNetwork": {
      "id": 12,
      "name": "AllRoutes",
      "type": "esriLRSNetworkLayer"
      },
      "intersectingLayers": [
        {
        "featureClassName": "Town_Boundary",
        "nameSeparator": "\u0026 Town:"
        }
      ],
      "fields": [
        {
          "name": "OBJECTID",
          "type": "esriFieldTypeOID",
          "alias": "OBJECTID",
          "editable": false,
          "nullable": false,
          "defaultValue": null,
          "domain": null
        },
        ...
      ]
    }
  ],
  "eventLayers": [
    {
      "id" : 2,
      "name" : "Pressure",
      "type" : "esriLRSLinearEventLayer",
      "lrsNetworkId" : 1,
      "datasetName" : "Pressure",
      "featureClassName" : "sde.Pressure",
      "unitsOfMeasure" : "esriMeters",
      "measurePrecision" : 3,
      "isDataVersioned" : true,
      "versionName" : "sde.DEFAULT",
      "dateFormat" : "esriLRSDateFormatStandard",
      "spatialReferenceInfo" : {
        "wkid" : 26918,
        "xyResolution" : 0.0001,
        "xyTolerance" : 0.001,
        "mResolution" : 0.0001,
        "mTolerance" : 0.001
      },
      "eventIdFieldName" : "EventId",
      "routeIdFieldName" : "RouteId",
      "routeNameFieldName" : null,
      "fromMeasureFieldName" : "FromM",
      "toMeasureFieldName" : "ToM",
      "fromDateFieldName" : "FromDate",
      "toDateFieldName" : "ToDate",
      "locErrorFieldName" : "LocError",
      "canSpanRoutes" : false,
      "hasReferentLocation" : false,
      "lrs" : {
        "id" : "DFB23B7D-69D1-460F-B7E0-0FB190D23B96",
        "name" : "LRS"
      },
      "parentNetwork" : {
        "id" : 0,
        "name" : "Pipes",
        "type" : "esriLRSNetworkLayer"
      },
      "fields" : [
        {
          "name" : "EventId",
          "type" : "esriFieldTypeString",
          "alias" : "Event ID",
          "length" : 38
          "editable" : true,
          "nullable" : true,
          "defaultValue" : null,
          "domain" : null
        },
        ...
      ]
    }
  ],
  "centerlineLayers": [
    {
      "id": 3,
      "name": "Centerline",
      "type": "esriLRSCenterlineLayer",
      "isDataVersioned": true,
      "isBranchVersioned": true,
      "versionName": "sde.DEFAULT",
      "dateFormat": "esriLRSDateFormatStandard",
      "centerlineIdFieldName": "CenterlineId",
      "lrs" : {
        "id" : "DFB23B7D-69D1-460F-B7E0-0FB190D23B96",
        "name" : "LRS"
      },
      "fields": [
        {
          "name": "CenterlineId",
          "type": "esriFieldTypeGUID",
          "alias": "Centerline Id",
          "length": 38,
          "editable": true,
          "nullable": true,
          "defaultValue": null,
          "domain": null
        },
        ...
      ]
    }
  ],
  "utilityNetworkLayers": [
    {
      "id": 3,
      "name": "Centerline",
      "type": "esriLRSUtilityNetworkLayer",
      "isDataVersioned": true,
      "isBranchVersioned": true,
      "versionName": "sde.DEFAULT",
      "dateFormat": "esriLRSDateFormatStandard",
      "routeIdFieldName": "RouteId",
      "fromMeasureFieldName": "FromMeasure",
      "toMeasureFieldName": "ToMeasure",
      "lrs" : {
        "id" : "DFB23B7D-69D1-460F-B7E0-0FB190D23B96",
        "name" : "LRS"
      },
      "fields": [
        {
          "name": "RouteId",
          "type": "esriFieldTypeString",
          "alias": "Route Id",
          "length": 255,
          "editable": true,
          "nullable": true,
          "defaultValue": null,
          "domain": null
        },
        {
          "name": "FromMeasure",
          "type": "esriFieldTypeDouble",
          "alias": "From Measure",
          "editable": true,
          "nullable": true,
          "defaultValue": null,
          "domain": null
        },
        {
          "name": "ToMeasure",
          "type": "esriFieldTypeDouble",
          "alias": "To Measure",
          "editable": true,
          "nullable": true,
          "defaultValue": null,
          "domain": null
        },
        ...
      ]
    }
  ],
  "nonLRSLayers": [
    {
      "id": 4,
      "name": "RoadsAndHighways.DBO.CityIntersection",
      "description": "",
      "type": "esriNonLRSLayer",
      "featureClassName": "RoadsAndHighways.DBO.CityIntersection",
      "isDataVersioned": true,
      "versionName": "dbo.DEFAULT",
      "dateFormat": "esriLRSDateFormatStandard",
      "fields": [
        {
          "name": "OBJECTID",
          "type": "esriFieldTypeOID",
          "alias": "OBJECTID",
          "editable": false,
          "nullable": false,
          "defaultValue": null,
          "domain": null
        },
        ...
      ]
    }
  ],
  "calibrationPointLayers": [
    {
      "id": 5,
      "name": "RoadsAndHighways.DBO.Calibration_Point",
      "description": "",
      "type": "esriLRSCalibrationPointLayer",
      "isDataVersioned": true,
      "versionName": "dbo.DEFAULT",
      "dateFormat": "esriLRSDateFormatStandard",
      "routeIdFieldName": "RouteId",
      "networkFieldName": "NetworkId",
      "fromDateFieldName": "FromDate",
      "toDateFieldName": "ToDate",
      "measureFieldName": "Measure",
      "lrs": {
        "id": "fcb58eac-723b-4151-8a1a-419d0931adff",
        "name": "ALRS"
      },
      "fields": [
        {
          "name": "OBJECTID",
          "type": "esriFieldTypeOID",
          "alias": "OBJECTID",
          "editable": false,
          "nullable": false,
          "defaultValue": null,
          "domain": null
        },
        ...
      ]
    }
  ],
  "redlineLayers": [
    {
      "id": 7,
      "name": "RoadsAndHighways.DBO.Redline",
      "description": "",
      "type": "esriLRSRedlineLayer",
      "featureClassName": "RoadsAndHighways.DBO.Redline",
      "isDataVersioned": true,
      "versionName": "dbo.DEFAULT",
      "dateFormat": "esriLRSDateFormatStandard",
      "routeIdFieldName": "RouteId",
      "routeNameFieldName": "RouteName",
      "fromMeasureFieldName": "FromMeasure",
      "toMeasureFieldName": "ToMeasure",
      "effectiveDateFieldName": "EffectiveDate",
      "activityTypeFieldName": "ActivityType",
      "networkFieldName": "NetworkId",
      "lrs": {
        "id": "fcb58eac-723b-4151-8a1a-419d0931adff",
        "name": "ALRS"
      },
      "fields": [
        {
          "name": "OBJECTID",
          "type": "esriFieldTypeOID",
          "alias": "OBJECTID",
          "editable": false,
          "nullable": false,
          "defaultValue": null,
          "domain": null
        },
        ...
      ]
    }
  ]
}