Intersects

The Intersects function determines if one geography intersects another geography.

Syntax

Intersects(geography1, geography2)

The function arguments are:

geography1RequiredThe first geography that many be intersecting with the next geographygeography2RequiredThe second geography that many be intersecting with the previous geography

Examples

Intersects(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 True.

Intersects([Brooklyn], [Queens])

If we define the Brooklyn and Queens boroughs as a polygons (see Geography Functions for coordinates), then the Intersects function returns True because they share a waterway; see the following illustration.

Last updated

Was this helpful?