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
beta
Calculates the topological boundary of a 2D geometry.
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
-
Calculates the boundary on the input geometry.
Parametergeometry GeometryThe input geometry.
ReturnsType Description Geometry | null 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);
-
Calculates the boundaries on a set of geometries.
ReturnsType Description Array<(Geometry|null)> 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.