Geometry operation
spatial_operationCompute a buffer (shape-preserving, metres), geodesic area or length, centroid or convex hull.
Returns the resulting geometry as GeoJSON with its measurements and units.
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": {
"operation": "<operation>",
"geometry": "<geometry>"
},
"name": "spatial_operation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geometry | Yes | A GeoJSON geometry, e.g. {"type": "Point", "coordinates": [lon, lat]} | |
| radius_m | No | Buffer radius in metres | |
| operation | Yes | What to compute; buffer also needs radius_m |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | ||
| type | No | FeatureCollection | |
| features | Yes | ||
| geospark | No |