You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Taco de Wolff edited this page Oct 19, 2025
·
3 revisions
Spatial relations define how two shapes relate to each other according to the DE-9IM specification.
relation, intersections:=p.Relate(q)
relation.Disjoint()
relation.Intersects()
relation.Equals()
relation.Touches()
relation.Contains()
relation.Within()
relation.Covers()
relation.CoveredBy()
relation.Overlaps()
// convenience functions based on Relate:p.Touches(q) // boundaries/interiors intersect (p may overlap or contain/within q)p.Overlaps(q) // interiors intersect (p may contain/within q)p.Contains(q) // no boundary/interior is exteriorp.Intersections(q) // return list of intersections