import { execute, executeMany, supportsCurves } from "@arcgis/core/geometry/operators/minimumBoundingCircleOperator.js";const { execute, executeMany, supportsCurves } = await $arcgis.import("@arcgis/core/geometry/operators/minimumBoundingCircleOperator.js");- 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.
Type definitions
Functions
| Name | Return Type | Object |
|---|---|---|
| | |
| | ||
Polygon[] | | |
| |
execute
Function
Performs the minimum bounding circle operation on the geometry.
- Signature
-
execute (geometry: GeometryUnion): Polygon
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| geometry | The input geometry. | |
Example
// Perform the minimum bounding circle operationconst minimumBoundingCircle = minimumBoundingCircleOperator.execute(polygon); executeMany
Function
Performs the minimum bounding circle operation on the geometry set.
- Signature
-
executeMany (geometries: GeometryUnion[], options?: Options): Polygon[]
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| geometries | The set of input geometries. All the geometries must have the same spatial reference. | | |
| options | Additional options. | |
Variables
supportsCurves
Variable
Indicates if the operator supports input geometries that contain curves.
The value will always be false.
- Type
- boolean