boundaryOperator

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

execute

Method
execute(geometry){Geometry |null}

Calculates the boundary on the input geometry.

Parameter
geometry Geometry

The input geometry.

Returns
Type 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);

executeMany

Method
executeMany(geometries){Array<(Geometry|null)>}

Calculates the boundaries on a set of geometries.

Parameter
geometries Geometry[]

The input geometries.

Returns
Type 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.

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