Skip to main content
Check if geometry a is within ‘distance’ units of geometry b SQL reference: ST_DWithin

Signature

Parameters

ColumnOrName
required
Geometry column to check
ColumnOrName
required
Geometry column to check
Union[ColumnOrName, float]
required
distance units to check the within predicate
Optional[Union[ColumnOrName, bool]]
default:"None"
whether to use spheroid distance or euclidean distance

Returns

True if a is within distance units of Geometry b