Spatial Predicates Lab
Start with a scenario, drag shapes in the canvas, and read the results panel.

Instructions:

1
Choose scenario: Use the scenario menu to pick what you want to compare.
2
Move geometry: Drag K and M inside the canvas to test relationships.
3
Read results: Click any result row to see code examples below.
Start from a preset:
K M
Drag shapes — K (rectangle) · M (circle) · Line: endpoints to rotate/scale, midpoint or body to move
Polygon K — Neighborhood
Polygon M — Flood Zone
Results
Click any row to see its meaning and code example below.
Code: