- URL:
- https://<root>/<serviceName>/TraceNetworkServer/validateNetworkTopology
- Methods:
POST
- Required Capability:
- Requires the ArcGIS Advanced Editing user type extension license
- Version Introduced:
- 10.9
Description
Validating the network topology for a trace network maintains consistency between feature editing space and network topology space. Validating a network topology may include all or a subset of the dirty areas present in the network.
Request parameters
Parameter | Details |
---|---|
| The output format of the response. The default response format is
|
(Optional) | Specifies the name of the geodatabase version. The default is Syntax: |
(Optional) | Specifies the token guid used to lock the version. If the calling client is editing a named version, the sessionId must be provided; if the client is editing DEFAULT, the version may not be locked and the sessionId should not be specified. Syntax: |
(Required) | The envelope of the area to validate. Syntax:
|
(Optional) | Boolean property specifying whether to return the modified features. Returned results are organized in a layer-by-layer fashion. If The editedFeatures object returns full features including the original features prior to delete; the original and current features for updates; and the current rows for inserts, which may contain implicit changes (for example, as a result of a calculation rule). The response includes no Edited features are returned in the spatial reference of the feature service as defined by the services spatialReferenceobject or by the spatialReference of the layer's extent object. The default for this parameter is
|
JSON Response syntax
JSON response:
{
"moment" : <datetime>,
"fullUpdate" : <true | false>,
"validateErrorsCreated" : <true | false>,
"dirtyAreaCount" : <long>,
“exceededTransferLimit : <true | false>, // only if returnEdits is true
“serviceEdits” : [ // only if returnEdits is true
{
“id” : <layerId>,
“editedFeatures” :
{
"adds" : [<currentFeature1>, <currentFeature2>],
"updates" : [
[<originalFeature3>, <currentFeature3>],
[<originalFeature4>, <currentFeature4>]
],
"deletes" : [<originalFeature5>, <originalFeature6>]
}
}
],
"success" : <true | false>,
"error" : { // only if success is false
"extendedCode" : <HRESULT>,
"message" : <error message>,
"details" : [ <detail> ]
}
}
Example usage
Validate a specified extent for a trace network using the validate
operation.
Request URL and parameters:
https:
f=json
gdbVersion=sde.default
validateArea=
{
"xmin": 1034659.2752358826,
"ymin": 1871561.7755379943,
"xmax": 1034730.4307899779,
"ymax": 1871623.0833411064,
"spatialReference": {
"wkid": 102671,
"latestWkid": 3435
}
}
returnEdits=true
JSON response:
{
"exceededTransferLimit": false,
"serviceEdits": [
{
"id": 5,
"editedFeatures": {
"spatialReference": {
"wkid": 4326,
"latestWkid": 4326,
"xyTolerance": 8.983152841195215e-09,
"zTolerance": 0.00020000000000000001,
"mTolerance": 0.001,
"falseX": -400,
"falseY": -400,
"xyUnits": 999999999.999999881,
"falseZ": -100000,
"zUnits": 10000,
"falseM": -100000,
"mUnits": 10000
},
"adds": [
{
"attributes": {
"OBJECTID": 3,
"GLOBALID": "{BFB2C23B-44D3-42CA-AD85-6ED841F405AE}"
},
"geometry": {
"x": -79.7467916069999774,
"y": 35.76075521100006
}
},
{
"attributes": {
"OBJECTID": 4,
"GLOBALID": "{6645BB68-6F5B-4F63-B9AC-5A03534FA2D1}"
},
"geometry": {
"x": -78.6244635199999493,
"y": 35.8222526400000447
}
}
]
}
},
{
"id": 6,
"editedFeatures": {
"spatialReference": {
"wkid": 4326,
"latestWkid": 4326,
"xyTolerance": 8.983152841195215e-09,
"zTolerance": 0.00020000000000000001,
"mTolerance": 0.001,
"falseX": -400,
"falseY": -400,
"xyUnits": 999999999.999999881,
"falseZ": -100000,
"zUnits": 10000,
"falseM": -100000,
"mUnits": 10000
},
"deletes": [
{
"attributes": {
"OBJECTID": 22,
"ISRETIRED": 1,
"STATUS": 0,
"SOURCEID": 4,
"GUID": "{F8DFB8B3-2CAB-4858-9B5C-8CC56B036065}",
"UPDATETYPE": 0,
"CREATIONDATE": 1602622524000,
"CREATOR": "tnadmin",
"LASTUPDATE": 1602622524000,
"UPDATEDBY": "tnadmin",
"GLOBALID": "{431D1360-0729-431D-9245-39D4693948AF}",
"Shape__Area": 0.069020505107294516,
"Shape__Length": 2.36765175312757492
},
"geometry": {
"rings": [
[
[
-79.7467916969999351,
35.7607551210000452
],
[
-79.7467916969999351,
35.8222527300000593
],
[
-78.6244634299999348,
35.8222527300000593
],
[
-78.6244634299999348,
35.7607551210000452
],
[
-79.7467916969999351,
35.7607551210000452
]
]
]
}
}
]
}
}
],
"moment": 1602622532489,
"validateErrorsCreated": false,
"dirtyAreaCount": 0,
"fullUpdate": false,
"success": true
}