- URL:
- https://<LinearReferencingService-url>/eventLayers/<layerId>
- Methods:
- GET
- Required Capability:
- The ArcGIS Location Referencing license is required to use this resource.
- Version Introduced:
- 10.6
Description
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
| Parameter | Details | 
|---|---|
| 
 (Optional) | Specifies the response format. The default response format is  Values:  | 
Example usage
Example 1
URL for event layer ID 2.
https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/eventLayers/2JSON 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>,
  "isBranchVersioned": <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
  "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": <>
    },
    {
      "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,
  "isBranchVersioned": 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
    }
  ]
}