- URL:
- https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/map/identify
- Methods:
POST
- Version Introduced:
- 10.6
Description
The identify
operation returns an identified results resource. It is performed on a Diagram Map resource.
Request parameters
Parameter | Details |
---|---|
|
The name of the geodatabase version. Syntax: Example: |
|
The session moment. Syntax: Example: |
(Required) | The geometry to identify on. The type of the geometry is specified by the geometryType parameter. The structure of the geometries is the same as the structure of the JSON geometry objects returned by the ArcGIS REST API. In addition to the JSON structures, for points and envelopes, you can specify the geometries with a simpler comma-separated syntax. Syntax:
Example:
|
| The type of geometry specified by the geometry parameter. The geometry type could be a point, line, polygon, or an envelope. The default geometry type is a point (esriGeometryPoint). Syntax: Example: |
| The well-known ID of the spatial reference of the input and output geometries as well as the mapExtent. If |
(Required) | The distance in screen pixels from the specified Syntax: Example: |
(Required) | The screen image display parameters (width, height, and DPI) of the map being currently viewed. The Syntax: Example: |
| A boolean statement that determines whether to include geometries.
Syntax: Example: |
| This option can be used to specify the maximum allowable offset to be used for generalizing geometries returned by the Syntax: Example: |
| A boolean statement that determines whether to return z-values.
Syntax: Example: |
| A boolean statement that determines whether to include m-values.
Syntax: Example: |
| A boolean statement that determines whether to format dates, numbers, subtypes and domain values in the result.
Syntax: Example: |
| A boolean statement that determines whether to return field aliases.
Syntax: Example: |
| This option can be used to specify the number of decimal places in the response geometries returned by the operation. This applies to x- and y-values (not m- or z-values). Syntax: Example: |
(Required) | The extent or bounding box of the map currently being viewed. Unless the The Syntax: Example: |
|
The response format. The default response format is html. Values: |
Example usage
Identify diagram features in a specific envelope (<xmin>,<ymin>,<xmax>,<ymax>)=(1034510, 1871808, 1034512, 1871809) in the network diagram DiagramTest1 that is in version ABV1; that is:
-
URL:
https:
//myserver.esri.com/server/rest/services/Naperville/Network Diagram Server/diagrams/Diagram Test1/map/identify -
Parameters:
Use dark colors for code blocks Copy gdbVersion=ABV1 moment= geometry=1034510,1871808,1034512,1871809 geometryType=esriGeometryEnvelope sr= tolerance=2 imageDisplay=496,496,96 returnGeometry= maxAllowableOffset= returnZ= returnM= returnUnformattedValues= returnFieldName= geometryPrecision= mapExtent=1034222.0452205092,1871589.0737789422,1034702.7306108437,1871863.8619432747 f=pjson
-
Sent URL (GET):
https:
//myserver.esri.com/server/rest/services/Naperville/Network Diagram Server/diagrams/Diagram Test1/map/identify?gdb Version=ABV1&moment=&geometry=1034510%2C1871808%2C1034512%2C1871809&geometry Type=esri Geometry Envelope&sr=&tolerance=2&image Display=496%2C496%2C96&return Geometry=&max Allowable Offset=&return Z=&return M=&return Unformatted Values=&return Field Name=&geometry Precision=&map Extent=1034222.0452205092%2C1871589.0737789422%2C1034702.7306108437%2C1871863.8619432747&f=pjson
JSON Response syntax
{
"results": [
{
"layerId": < layerId1 >,
"layerName": "< layerName1 >",
"displayFieldName": "< displayFieldName1 >",
"value": "< value1 >",
"attributes": {
"< FieldName11 >": "< FieldValue11 >",
...,
"< FieldName1N >": "< FieldValue1N >"
},
"geometryType": "< esriGeometryPoint | esriGeometryPolyline | esriGeometryPolygon >",
"geometry": {< geometry1 >}
},
...
{
"layerId": < layerIdN >,
"layerName": "< layerNameN >",
"displayFieldName": "< displayFieldNameN >",
"value": "< valueN >",
"attributes": {
"< FieldNameN1 >": "< FieldValueN1 >",
...,
"< FieldNameNN >": "< FieldValueNN >"
},
"geometryType": "< esriGeometryPoint | esriGeometryPolyline | esriGeometryPolygon >",
"geometry": {< geometryN >}
}
}
]
}
JSON Response example
{
"results": [
{
"layerId": 103,
"layerName": "Electric Distribution Junction",
"displayFieldName": "Asset group",
"value": "Connection Point",
"attributes": {
"Element object ID": "40328",
"Element global ID": "{51AF7B03-6B08-452F-BF83-B213C2CC2CBE}",
"Element ID": "9",
"Element rotation": "0",
"Shape": "Point",
"Object ID": "3142",
"Asset group": "Connection Point",
"Asset type": "Low Voltage Attachment",
"Association status": "None",
"Is connected": "True",
"Creation date": "8/29/2017 2:48:26 PM",
"Creator": "MAP",
"Last update": "8/29/2017 2:48:26 PM",
"Updated by": "MAP",
"Global ID": "{C0718A4C-608F-4025-BAFF-445CB0EBA9DA}",
"Label Text": " ",
"Notes": "Null",
"Phases Built": "ABCN",
"Phases Normal": "ABCN",
"Phases Current": "ABC",
"Phases Energized": "ABC",
"Symbol Rotation": "0",
"Subnetwork name": "RMT003"
},
"geometryType": "esriGeometryPoint",
"geometry": {
"x": 1034511.3176078424,
"y": 1871808.4880382717,
"spatialReference": {
"wkid": 102671,
"latestWkid": 3435
}
}
}
]
}