Calculate Centroid
centroid_toolCalculate the geometric center (centroid) of a polygon or multipolygon. Works offline without API calls.
Instructions
Calculate the geometric center (centroid) of a polygon or multipolygon. The centroid is the arithmetic mean position of all points in the shape. Works offline without API calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geometry | Yes | Polygon or MultiPolygon coordinates. Polygon: array of rings (first is outer, rest are holes). MultiPolygon: array of polygons. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| centroid | Yes |