From 1908f0c88564106a536d2b450dc573a3d941e638 Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Fri, 12 Jan 2024 20:48:52 +0545 Subject: [PATCH] Defaults to st_intersects for now in duckdb query --- src/query_builder/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query_builder/builder.py b/src/query_builder/builder.py index e6f4d830..56f3e367 100644 --- a/src/query_builder/builder.py +++ b/src/query_builder/builder.py @@ -952,7 +952,7 @@ def extract_features_duckdb(base_table_name, select, feature_type, where, geomet for table in from_query: where_query = map_tables[feature_type]["where"][table] if geometry: - where_query += f" and (ST_Intersects_Extent(geometry,ST_GeomFromGeoJSON('{geometry.json()}')))" + where_query += f" and (ST_Intersects(geometry,ST_GeomFromGeoJSON('{geometry.json()}')))" query = f"""select {select_query} from {f"{base_table_name}_{table}"} where {where_query}""" base_query.append(query) return " UNION ALL ".join(base_query)