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:
Constant | Description |
---|---|
Enums. | (-1) Unknown relationship. |
Enums. | (0) Matched a spatial relationship function. |
Enums. | (1) Geometries are equal. |
Enums. | (2) The intersection of the geometries is empty. |
Enums. | (3) The geometries are not disjoint. |
Enums. | (4) The intersection of the geometries is not empty, while the intersection of their interiors is empty. |
Enums. | (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. | (6) The base geometry is equal to its intersection with the comparison geometry and the intersection of their interiors is not empty. |
Enums. | (7) Same relationship as Spatial |
Enums. | (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. ( |
Enums. | (9) The minimum bounding envelope of the two geometries have the Spatial |
Enums. | (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.