minimumBoundingCircleOperator

AMD: require(["esri/geometry/operators/minimumBoundingCircleOperator"], (minimumBoundingCircleOperator) => { /* code goes here */ });
ESM: import * as minimumBoundingCircleOperator from "@arcgis/core/geometry/operators/minimumBoundingCircleOperator.js";
Object: esri/geometry/operators/minimumBoundingCircleOperator
Since: ArcGIS Maps SDK for JavaScript 4.31

Create a minimum bounding circle for the input geometry. The output is a polygon with a single closed circular segment containing curves. Implements the Welzl's algorithm using greedy heuristic with expected O(n) time complexity.

Note

  • If curves are not needed, then densify the output geometry.

Property Overview

Name Type Summary Object

Indicates if the operator supports input geometries that contain curves.

minimumBoundingCircleOperator

Property Details

supportsCurves

Property
supportsCurves Booleanreadonly

Indicates if the operator supports input geometries that contain curves.

Default Value:false

Method Overview

Name Return Type Summary Object

Performs the minimum bounding circle operation on the geometry.

minimumBoundingCircleOperator

Performs the minimum bounding circle operation on the geometry set.

minimumBoundingCircleOperator

Method Details

execute

Method
execute(geometry){Polygon}

Performs the minimum bounding circle operation on the geometry.

Parameter
geometry GeometryUnion

The input geometry.

Returns
Type Description
Polygon Returns the minimum bounding circle polygon with curves.
Example
// Perform the minimum bounding circle operation
const minimumBoundingCircle = minimumBoundingCircleOperator.execute(polygon);

executeMany

Method
executeMany(geometries, options){Polygon[]}

Performs the minimum bounding circle operation on the geometry set.

Parameters
geometries GeometryUnion[]

The set of input geometries. All the geometries must have the same spatial reference.

options Object
optional

Additional options.

Specification
merge Boolean
optional
Default Value: false

If true, the input geometries will be merged into a single geometry before calculating the minimum bounding circle.

Returns
Type Description
Polygon[] Returns the minimum bounding circle polygons with curves.

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