Validate Network Topology

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

ParameterDetails

f

The output format of the response. The default response format is html.

Use dark colors for code blocksCopy
1
f=html | json | pjson

gdbVersion

(Optional)

Specifies the name of the geodatabase version. The default is sde.Default.

Syntax: gdbVersion=<version>

sessionID

(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: sessionId=<guid>

validateArea

(Required)

The envelope of the area to validate.

Syntax:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
{
 "xmin": <minimum x-coordinate>,
 "ymin": <minimum y-coordinate>,
 "xmax": <maximum x-coordinate>,
 "ymax": <maximum y-coordinate>,
 "spatialReference": {
  "wkid": <spatial reference well-known identifier>,
  "latestWkid": <the current wkid value associated with the wkid>
 }
}

returnEdits

(Optional)

Boolean property specifying whether to return the modified features. Returned results are organized in a layer-by-layer fashion. If returnEdits is set to true, each layer may have edited features returned in an editedFeatures object.

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 editedFeatures and exceededTransferLimit = true if the count of edited features to return is more than the maxRecordCount. If clients are using this parameter to maintain a cache, they should invalidate the cache when exceededTransferLimit = true is returned. If the server encounters an error when generating the list of edits is the response, exceededTransferLimit = true is also returned.

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 false.

Use dark colors for code blocksCopy
1
returnEdits=true | false

JSON Response syntax

JSON response:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  "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 validateNetworkTopology operation.

Request URL and parameters:

https://myserver.esri.com/server/rest/services/LandUse/TraceNetworkServer/validateNetworkTopology

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
 "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
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.