STIntersects
STIntersects is a spatial predicate used in geographic information systems to determine whether two geometries share any portion of space. The predicate is part of the OpenGIS Simple Features specification and is implemented in many GIS libraries and databases, including PostGIS, SpatiaLite, GEOS-based tools, and related bindings. In practice, STIntersects tests whether the intersection of the two input geometries is non-empty.
STIntersects returns a boolean value: true if the two geometries have at least one point in common,
STIntersects is a broad predicate: it is true for intersecting points, lines, and polygons, regardless of geometry
Queries using STIntersects often benefit from spatial indexes (for example, GiST indexes in PostgreSQL/PostGIS). A typical
STIntersects(POINT(0 0), LINESTRING(0 0, 1 1)) yields true. STIntersects(POINT(0 0), POLYGON(10 10, 20 10, 20 20, 10