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.

The developer dashboard has moved

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close