Function: regionPredicate()
regionPredicate(
ring,target,crs?):string
Defined in: autk-db/src/selection-sql.ts:158
The condition "the point/geometry in these columns is inside this ring": the bounding box first (cheap), then the exact ST_Covers test. A point on the ring counts as inside (ST_Covers), as with pointInRing in autk-core.
Pass a [lon, lat] column tuple for scalar point columns (default CRS 'EPSG:4326') or a single DuckDB GEOMETRY column name (default CRS DEFAULT_WORKSPACE_CRS). Supply crs to transform the WGS84 ring into another CRS.
Parameters
ring
Ring
target
string | [lon: string, lat: string]
crs?
string
Returns
string
Throws
If the ring has fewer than four points, is not closed, self-intersects, or has non-finite coordinates.