- URL:https://<diagram-url>/findInitialNetworkObjects
- Version Introduced: 10.6.1
Description
The findInitialNetworkObjects operation is performed on a Diagram resource. It returns an array of network feature globalIDs.
This is the operation to use to search for the set of network features used as input for the diagram build.
License:
The active portal account must be licensed with the ArcGIS Advanced Editing user type extension to use this operation.Request parameters
Parameter | Details |
---|---|
gdbVersion | Description: The name of the geodatabase version. Syntax: gdbVersion=<version> Example: gdbVersion=ABV1 |
sessionId | Description: The token (guid) used to lock the version. Syntax: sessionId=<guid> Example: sessionId=44G259DE-87B0-407D-8F2E-DCB7665DD0F0 |
moment | Description: The session moment. Syntax: moment=<moment> Example: moment=1490867969324 |
Example usage
Retrieving the network features used to build DiagramTest2 in Default; that is:
- URL: https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams/DiagramTest2/findInitialNetworkObjects
- Parameters:
gdbVersion= sessionId= moment=& f=pjson
- Sent URL (GET): https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams/DiagramTest2/findInitialNetworkObjects?gdbVersion=&sessionId=&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
}
]
}