Event Layer

URL:
https://<LinearReferencingService-url>/eventLayers/<layerId>
Methods:
GET
Operations:
Append Events, Generate Events, Geometry To Station, Station To Geometry
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

ParameterDetails

f

(Optional)

Specifies the response format. The default response format is html.

Values: html | json | pjson

Example usage

Example 1

URL for event layer ID 2.

Use dark colors for code blocksCopy
1
https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/eventLayers/2

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
  "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

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
  "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
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.