Enums.SpatialRelationship enumeration

Geometry tests compare a base (first) geometry to a comparison (second) geometry, though for most relationships, this order does not matter.

The SpatialRelationship can be one of:

ConstantDescription
Enums.SpatialRelationshipUnknown(-1) Unknown relationship.
Enums.SpatialRelationshipRelate(0) Matched a spatial relationship function.
Enums.SpatialRelationshipEquals(1) Geometries are equal.
Enums.SpatialRelationshipDisjoint(2) The intersection of the geometries is empty.
Enums.SpatialRelationshipIntersects(3) The geometries are not disjoint.
Enums.SpatialRelationshipTouches(4) The intersection of the geometries is not empty, while the intersection of their interiors is empty.
Enums.SpatialRelationshipCrosses(5) Two polylines cross if they share only points in common, at least one of which is not an endpoint. A polyline and a polygon cross if they share a polyline in common on the interior of the polygon which is not equivalent to the entire polyline.
Enums.SpatialRelationshipWithin(6) The base geometry is equal to its intersection with the comparison geometry and the intersection of their interiors is not empty.
Enums.SpatialRelationshipContains(7) Same relationship as SpatialRelationshipWithin, but with the base and comparison geometry roles swapped.
Enums.SpatialRelationshipOverlaps(8) The dimension of both geometries and the intersection of the geometries are all the same, and intersection of the geometries is not equal to either of the geometries. (See Geometry for description of dimension.)
Enums.SpatialRelationshipEnvelopeIntersects(9) The minimum bounding envelope of the two geometries have the SpatialRelationshipIntersects relationship.
Enums.SpatialRelationshipIndexIntersects(10) The base geometry intersects one or more spatial index entries for the comparison geometry, indicating that the geometries may intersect or are close to each other.

See also Geometry.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.