The Intersects function determines if one geography intersects another geography.
Intersects is one of Sigma's Geography functions.
The function arguments are:
- The first geography that many be intersecting with the next geography
- The second geography that many be intersecting with the previous geography
Geography("POLYGON((0 0, 2 0, 2 2, 0 2, 0 0))"),
Geography("POLYGON((1 1, 3 1, 3 3, 1 3, 1 1))"))
The function returns
If we define the Brooklyn and Queens boroughs as a polygons (see Geography functions overview for coordinates), then the Intersects function returns
True because they share a waterway; see the following illustration.