AMD:
require(["esri/geometry/operators/boundaryOperator"], (boundaryOperator) => { /* code goes here */ });
ESM:
import * as boundaryOperator from "@arcgis/core/geometry/operators/boundaryOperator.js";
Object:
esri/geometry/operators/boundaryOperator
Since: ArcGIS Maps SDK for JavaScript 4.31
Calculates the topological boundary of a 2D geometry.
Property Overview
Name | Type | Summary | Object |
---|---|---|---|
Indicates if the operator supports input geometries that contain curves. | boundaryOperator |
Property Details
-
supportsCurves
supportsCurves Booleanreadonly
-
Indicates if the operator supports input geometries that contain curves.
- Default Value:true
Method Overview
Name | Return Type | Summary | Object |
---|---|---|---|
Calculates the boundary on the input geometry. | boundaryOperator | ||
Calculates the boundaries on a set of geometries. | boundaryOperator |
Method Details
-
execute
execute(geometry){GeometryUnion |null |undefined}
-
Calculates the boundary on the input geometry.
Parametergeometry GeometryUnionThe input geometry.
ReturnsType Description GeometryUnion | null | undefined Returns the boundary geometry or null. - Using point or multipoint as the input geometry returns null.
- Extent returns a polyline that bounds the extent.
- Polyline returns a multipoint containing the end points of the polyline's parts.
- Polygon returns a polyline describing its outer and inner rings.
Example// Calculate the boundary of a polygon const boundaryGeometry = boundaryOperator.execute(polygon);
-
executeMany
executeMany(geometries){Array<(GeometryUnion|null|undefined)>}
-
Calculates the boundaries on a set of geometries.
Parametergeometries GeometryUnion[]The input geometries. All the geometries must have the same spatial reference.
ReturnsType Description Array<(GeometryUnion|null|undefined)> Returns the boundary geometries or null. - Using point or multipoint as the input geometry returns null.
- Extent returns a polyline that bounds the extent.
- Polyline returns a multipoint containing the end points of the polyline's parts.
- Polygon returns a polyline describing its outer and inner rings.