geom_overlay
Combine two geometries using intersection, union, difference, or symmetric difference to calculate the resulting area, with automatic repair of invalid input polygons.
Instructions
Combine two geometries with a set operation, reporting the resulting area.
The workhorse of overlay analysis: how much of this delivery zone falls inside that flood extent (intersection), what is the combined footprint of these service areas (union), which part of a territory is not yet covered (difference).
Invalid input geometries are repaired automatically before the operation, since self-intersecting polygons are common in real data.
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_a": "<geojson_a>",
"geojson_b": "<geojson_b>"
},
"name": "geom_overlay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geojson_a | Yes | First geometry, as GeoJSON (object or string) or WKT. | |
| geojson_b | Yes | Second geometry, as GeoJSON (object or string) or WKT. | |
| operation | No | The set operation to apply. | intersection |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| geometry | Yes | ||
| measurements | Yes |