Topological relationship
check_spatial_relationshipGround-truth topology: does geometry_a geometry_b?
Use instead of guessing containment, overlap or adjacency. Invalid geometries (for
example self-intersecting polygons) are refused with the reason.
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": {
"geometry_a": "<geometry_a>",
"geometry_b": "<geometry_b>",
"relationship": "<relationship>"
},
"name": "check_spatial_relationship"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geometry_a | Yes | A GeoJSON geometry, e.g. {"type": "Point", "coordinates": [lon, lat]} | |
| geometry_b | Yes | A GeoJSON geometry, e.g. {"type": "Point", "coordinates": [lon, lat]} | |
| relationship | Yes | The relationship to test: does geometry_a <relationship> geometry_b |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| holds | Yes | Whether geometry_a <relationship> geometry_b is true | |
| units | No | Unit of each numeric field | |
| status | No | ok | |
| warnings | No | Caveats to tell the user | |
| provenance | No | Source, licence, attribution, retrieval time and method | |
| relationship | Yes |