import * as minimumBoundingCircleOperator from "@arcgis/core/geometry/operators/minimumBoundingCircleOperator.js";
const minimumBoundingCircleOperator = await $arcgis.import("@arcgis/core/geometry/operators/minimumBoundingCircleOperator.js");
@arcgis/core/geometry/operators/minimumBoundingCircleOperator
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
PropertysupportsCurves Booleanreadonly -
Indicates if the operator supports input geometries that contain curves. The value will always be
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
Methodexecute(geometry){Polygon} -
Performs the minimum bounding circle operation on the geometry.
Parametergeometry GeometryUnionThe input geometry.
ReturnsExample// Perform the minimum bounding circle operation const minimumBoundingCircle = minimumBoundingCircleOperator.execute(polygon);
-
Performs the minimum bounding circle operation on the geometry set.
Parametersgeometries GeometryUnion[]The set of input geometries. All the geometries must have the same spatial reference.
options ObjectoptionalAdditional options.
Specificationmerge BooleanoptionalDefault Value: falseIf
true, the input geometries will be merged into a single geometry before calculating the minimum bounding circle.Returns