require(["esri/geometry/operators/minimumBoundingCircleOperator"], (minimumBoundingCircleOperator) => { /* code goes here */ });
import * as minimumBoundingCircleOperator from "@arcgis/core/geometry/operators/minimumBoundingCircleOperator.js";
esri/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
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
execute(geometry){Polygon}
-
Performs the minimum bounding circle operation on the geometry.
Parametergeometry GeometryUnionThe input geometry.
ReturnsType Description Polygon Returns the minimum bounding circle polygon with curves. Example// 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