import ValidateNetworkTopologyResult from "@arcgis/core/rest/networks/support/ValidateNetworkTopologyResult.js";const ValidateNetworkTopologyResult = await $arcgis.import("@arcgis/core/rest/networks/support/ValidateNetworkTopologyResult.js");- Inheritance:
- ValidateNetworkTopologyResult→
Accessor
- Subclasses:
- TopologyValidationJobInfo
- Since
- ArcGIS Maps SDK for JavaScript 4.26
Class that holds the returned object after running the Network.validateTopology() method.
Example
const extent = new Extent({ xmin: 470789.0888, ymin: 3597733.2051, xmax: 531454.2759999996, ymax: 3639864.802100001, spatialReference: { wkid: 26911, latestWkid: 26911 }});
const validateNetworkTopologyResult = await network.validateTopology({ validateArea: extent});Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
declaredClass readonly inherited | ||
Subnetwork[] | null | undefined | | |
| | ||
| | ||
| | ||
| | ||
| |
discoveredSubnetworks
- Type
- Subnetwork[] | null | undefined
Contains information about the subnetworks that are marked as dirty during the validation process, along with the domain network and tier containing the subnetwork.
fullUpdate
- Type
- boolean
If the current feature service contains no dirty areas, full update will return true.
- Default value
- false
serviceEdits
- Type
- ValidateServiceEdits[] | null | undefined
The serviceEdits 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.
validateErrorsCreated
- Type
- boolean
If error features are created during the validation process validateErrorsCreated will be true.
- Default value
- false
Methods
fromJSON
- Signature
-
fromJSON (json: any): any
Creates a new instance of this class and initializes it with values from a JSON object
generated from an ArcGIS product. The object passed into the input json
parameter often comes from a response to a query operation in the REST API or a
toJSON()
method from another ArcGIS product. See the Using fromJSON()
topic in the Guide for details and examples of when and how to use this function.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| json | A JSON representation of the instance in the ArcGIS format. See the ArcGIS REST API documentation for examples of the structure of various input JSON objects. | |
- Returns
- any
Returns a new instance of this class.
toJSON
- Signature
-
toJSON (): any
Converts an instance of this class to its ArcGIS portal JSON representation. See the Using fromJSON() guide topic for more information.
- Returns
- any
The ArcGIS portal JSON representation of an instance of this class.
Type definitions
ValidateServiceEdits
ValidateServiceEdits represents the layerId and editedFeatures.
Subnetwork
The Subnetwork object represents the domain name, tier name, and subnetwork via fulfilling the promise returned from running the Network.validateTopology() function.