Determine if Two Geometry Data Types Are Within a Specific Distance

You can use the function GeometryWithinDistance() to determine whether two shapes are within a specified distance of each other.

Based on the calculation, this function returns a True or a False as the result, and you can design visualizations based on the result. This function may require a Cartesian join. The sequence in which the geometry columns are selected within the calculation has a direct impact to the result.

Usage: GeometryWithinDistance(geometry_column1,geometry_column2,distance_in_meter).

This example shows the usage of the GeometryWithinDistance () calculation with two geometry columns within a numerical value of 350,000 meters or 350 kilometers.



This example shows the visualization on the right with all US Counties within a 350 kilometer range of the storm buffer. Only those counties that return the result as True are filtered and shown.



This example shows all the US Counties that return False and hence don’t have any direct impact from the storm.