- URL:
- https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/findInitialNetworkObjects
- Methods:
POST
- Version Introduced:
- 10.6.1
Description
The find
operation searches for the set of network elements used as input for the diagram build. It is performed on a Diagram resource. It returns an array of network element globalIDs.
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: |
Example usage
Retrieving the network features used to build DiagramTest2 in Default; that is:
-
URL:
https
://myserver.esri.com/server/rest/services/ Naperville/ Network Diagram Server/diagrams/ Diagram Test2/find Initial Network Objects -
Parameters:
Use dark colors for code blocks Copy gdbVersion= sessionId= moment=& f=pjson
-
Sent URL (GET):
https
://myserver.esri.com/server/rest/services/ Naperville/ Network Diagram Server/diagrams/ Diagram Test2/find Initial Network Objects?gdb Version=&session Id=&moment=&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 usage's response
{
"features": [
{
"globalID": "{AF41424F-1073-4640-A596-220AC3A33DA6}",
"featureOID": 3094,
"networkSourceID": 6,
"geometryType": 1
}
]
}