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
beta

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

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 Geometry

The input geometry.

Returns
Type Description
Polygon Returns the minimum bounding circle polygon.
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 Geometry[]

The set of input geometries.

options Object
optional

Additional options.

Specification
merge Boolean
optional
Default Value: false

Indicates if the minimum bounding circle geometries should be merged. Set to true to merge the geometries into a single geometry.

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

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