ArcGIS REST API

Event Layer

Description

License:

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

Represents an event layer in a linear referencing geodatabase. An event layer can contain either point or linear events, and it is associated with a linear referencing network.

Request Parameters

ParameterDetails
f

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

Values: html | json

Example Usage

Example 1

URL for event layer ID 2.

http://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/eventLayers/2

JSON Response Syntax

{
  "id" : <layerId>,
  "name" : "<layerName>",
  "type" : "<layerType>",  // one of: esriLRSPointEventLayer, esriLRSLinearEventLayer
  "lrsNetworkId" : <networkId>,
  "datasetName" : "<datasetName>",  // the event name registered in the LRS dataset
  "featureClassName" : "<featureClassName>",  // the backing feature class name
  "unitsOfMeasure" : "<units>",
  "measurePrecision" : <precision>,
  "isDataVersioned" : <true | false>,
  "versionName" : "<versionName>",
  "dateFormat" : "<sqlDateFormat>",  // one of: esriLRSDateFormatStandard, esriLRSDateFormatFileGDB, esriLRSDateFormatOracle

  // spatial reference properties of the feature data
  "spatialReferenceInfo" : {
    "wkid" : <wkid>,
    "wkt" : "<wkt>",  // WKT is included only when there is no WKID available
    "xyResolution" : <xyResolution>,
    "xyTolerance" : <xyTolerance>,
    "mResolution" : <mResolution>,
    "mTolerance" : <mTolerance>
  },

  "eventIdFieldName" : "<fieldName>",
  "routeIdFieldName" : "<fieldName>",
  "routeNameFieldName" : "<fieldName>",
  "fromMeasureFieldName" : "<fieldName>",
  "toMeasureFieldName" : "<fieldName>",  // only valid for linear events
  "fromDateFieldName" : "<fieldName>",
  "toDateFieldName" : "<fieldName>",
  "locErrorFieldName" : "<fieldName>",

  // line support properties, only valid for linear events
  "canSpanRoutes" : <true | false>,
  "toRouteIdFieldName" : "<fieldName>",
  "toRouteNameFieldName" : "<fieldName>",

  // referent offset properties
  "hasReferentLocation" : <true | false>,
  "referentOffsetUnits" : "<units>",
  "fromReferentMethodFieldName" : "<fieldName>",
  "fromReferentLocationFieldName" : "<fieldName>",
  "fromReferentOffsetFieldName" : "<fieldName>",
  "toReferentMethodFieldName" : "<fieldName>",  // only valid for linear events
  "toReferentLocationFieldName" : "<fieldName>",  // only valid for linear events
  "toReferentOffsetFieldName" : "<fieldName>",  // only valid for linear events

  // stationing properties
  "lrs" : {
    "id" : "<id>",
    "name" : "<name>"
  },
  "parentNetwork" : {
    "id" : <networkLayerId>,
    "name" : "<networkLayerName>",
    "type" : "<networkLayerType>"
  },
  "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" : 2,
  "name" : "Crash",
  "type" : "esriLRSPointEventLayer",
  "lrsNetworkId" : 1,
  "datasetName" : "Crash",
  "featureClassName" : "LRSE_Crash",
  "unitsOfMeasure" : "esriMeters",
  "measurePrecision" : 6,
  "isDataVersioned" : true,
  "versionName" : "sde.DEFAULT",
  "dateFormat" : "esriLRSDateFormatStandard",
  "spatialReferenceInfo" : {
    "wkid" : 26918,
    "xyResolution" : 0.0001,
    "xyTolerance" : 0.001,
    "mResolution" : 0.0001,
    "mTolerance" : 0.001
  },
  "eventIdFieldName" : "event_id",
  "routeIdFieldName" : "routeid",
  "routeNameFieldName" : null,
  "fromMeasureFieldName" : "meas",
  "toMeasureFieldName" : null,
  "fromDateFieldName" : "from_date",
  "toDateFieldName" : "to_date",
  "locErrorFieldName" : "locerror",
  "canSpanRoutes" : false,
  "hasReferentLocation" : true,
  "referentOffsetUnits" : "esriFeet",
  "fromReferentMethodFieldName" : "ref_method",
  "fromReferentLocationFieldName" : "ref_location",
  "fromReferentOffsetFieldName" : "ref_offset",
  "lrs" : {
    "id" : "DFB23B7D-69D1-460F-B7E0-0FB190D23B96",
    "name" : "DOT_LRS"
  },
  "parentNetwork" : {
    "id" : 10,
    "name" : "State Highways",
    "type" : "esriLRSNetworkLayer"
  },
  "fields" : [
    {
      "name" : "event_id",
      "type" : "esriFieldTypeInteger",
      "alias" : "Event ID",
      "editable" : true,
      "nullable" : false,
      "defaultValue" : null,
      "domain" : null
    },
    {
      "name" : "desc",
      "type" : "esriFieldTypeString",
      "alias" : "Description",
      "length" : 100,
      "editable" : true,
      "nullable" : true,
      "defaultValue" : "N/A",
      "domain" : null
    }
  ]
}