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.
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 |