- URL:
- https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/findNetworkFeatures
- Methods:
POST
- Version Introduced:
- 10.6
Description
The find
operation searches for the network elements associated with a set of diagram features represented in a diagram. It is performed on a Diagram resource. It returns an array of network element global IDs.
Request parameters
Parameter | Details |
---|---|
|
The name of the geodatabase version. Syntax: Example: |
|
The token (guid) used to lock the version. Syntax: Example: |
|
The session moment. Syntax: Example: |
(Required) | An array of diagram network feature global IDs. Syntax:
Example:
|
(Required) | A boolean statement that determines whether to include aggregated network elements.
Syntax:
Example:
|
| A boolean statement that determines whether to include spatial containers related to the retrieved network objects .
Syntax:
Example:
|
|
The response format. The default response format is html. Values: |
Example usage
Retrieve the utility network features associated with the diagram feature whose global ID is "{1EE98487-730C-4193-8510-8BF975332237}" in the "DiagramTest1" diagram resource; that is:
URL:
https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams/DiagramTest1/findNetworkFeatures
Parameters:
gdbVersion=
sessionId=
moment=
fromFeatures=["{1EE98487-730C-4193-8510-8BF975332237}"]
includeAggregations=true
findContainerIfNonSpatial=true
f=pjson
Sent URL (GET):
https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams/DiagramTest1/findNetworkFeatures?gdbVersion=&sessionId=&moment=&fromFeatures=%5B%22%7B1EE98487-730C-4193-8510-8BF975332237%7D%22%5D&includeAggregations=true&findContainerIfNonSpatial=true&f=pjson
JSON Response syntax
{
"features": [
{
"globalID": "< globalID1 >", // GUID of the associated network feature
"featureOID": < featureOID1 >, // ObjectID of the associated network feature (int)
"networkSourceID": < networkSourceID1 >, // ID of the associated network feature source class (int)
"geometryType": < 0 | 1 | 2 | 3 | 4 > // geometry type of the associated network feature 0: edge, 1: point, 2:?, 3:?, 4:polygon
},
...
{
"globalID": "< globalIDN >",
"featureOID": < featureOIDN >,
"networkSourceID": < networkSourceIDN >,
"geometryType": < 0 | 1 | 2 | 3 | 4 >
}
]
}
JSON Response example
Example response:
{
"features": [
{
"globalID": "{AF41424F-1073-4640-A596-220AC3A33DA6}",
"featureOID": 3094,
"networkSourceID": 6,
"geometryType": 1
}
]
}