centroids_geojson
Get the center point of each polygon/line feature — e.g. "find the center of each parcel", "convert polygons to points for labeling", "centroid of each feature". Properties are kept.
Returns JSON {ok, geojson} — a FeatureCollection of points.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"geojson": "<geojson>"
},
"name": "centroids_geojson"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geojson | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |