ArcGIS REST API

All Layers

Description

License:

The ArcGIS Pipeline Referencing for Server extension is required to use this resource.

Contains the full details of all network, event, and other LRS-related layers in the map service.

Tip:

If you are building an application that needs to 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

Description: The response format. The default response format is html.

Values: html | json

Example Usage

Example 1

URL for all layers.

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

JSON Response Syntax

{
  "networkLayers": [
    {
      <networkLayer1>
    },
    {
      <networkLayer2>
    },
    ...
  ],
  "eventLayers": [
    {
      <eventLayer1>
    },
    {
      <eventLayer2>
    },
    ...
  ]
}

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
        },
        ...
      ]
    }
  ],
  "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
        },
        ...
      ]
    }
  ]
}