Spatial Predicates Visual Reference
Complete visual guide to spatial relationship functions in FilterMate with examples and diagrams.
What Are Spatial Predicates?
Spatial predicates are functions that test the geometric relationship between features. They answer questions like:
- Does this parcel touch the road?
- Is this building within the flood zone?
- Does this pipeline cross the river?
- Are these properties near the school?
Unlike attribute filters (price > 100000), spatial predicates work with geometry.
Quick Reference Table
| Predicate | Question | Example Use Case | Performance |
|---|---|---|---|
| intersects | Do they overlap/touch at all? | Find parcels touching roads | ⚡⚡⚡ Fast |
| within | Is A completely inside B? | Buildings in flood zone | ⚡⚡ Medium |
| contains | Does A completely enclose B? | Parcels containing buildings | ⚡⚡ Medium |
| touches | Do edges meet (but not overlap)? | Adjacent land parcels | ⚡⚡⚡ Fast |
| crosses | Does A pass through B? | Roads crossing rivers | ⚡⚡ Medium |
| overlaps | Do they share area (but not identical)? | Overlapping land claims | ⚡ Slow |
| disjoint | Are they completely separate? | Properties NOT near hazards |