▾
import { minimumBoundingCircleExecute, execute, minimumBoundingCircleExecuteMany, executeMany, minimumBoundingCircleSupportsCurves } from "@arcgis/core/geometry/operators/minimumBoundingCircleOperator.js";const { minimumBoundingCircleExecute, execute, minimumBoundingCircleExecuteMany, executeMany, minimumBoundingCircleSupportsCurves } = 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 Welzl's algorithm using a greedy heuristic with expected O(n) time complexity.
Note
If curves are not needed, then densify the output geometry.
Type definitions
Functions
minimumBoundingCircleExecute
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Performs the minimum bounding circle operation on the geometry.
- Signature
-
minimumBoundingCircleExecute (geometry: GeometryUnion): Polygon
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| geometry | The input geometry. | |
- Example
- // Perform the minimum bounding circle operationconst minimumBoundingCircle = minimumBoundingCircleExecute(polygon);
execute
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 = minimumBoundingCircleExecute(polygon);
minimumBoundingCircleExecuteMany
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Performs the minimum bounding circle operation on the geometry set.
- Signature
-
minimumBoundingCircleExecuteMany (geometries: GeometryUnion[], options?: MinimumBoundingCircleOptions): Polygon[]
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| geometries | The set of input geometries. All the geometries must have the same spatial reference. | | |
| options | Additional options. | |
executeMany
Performs the minimum bounding circle operation on the geometry set.
- Signature
-
executeMany (geometries: GeometryUnion[], options?: MinimumBoundingCircleOptions): 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
minimumBoundingCircleSupportsCurves
- Since
- ArcGIS Maps SDK for JavaScript 5.2
Indicates if the operator supports input geometries that contain curves.
The value will always be false.
- Type
- boolean
supportsCurves
Indicates if the operator supports input geometries that contain curves.
The value will always be false.
- Type
- ReturnType