22#
33# Authors: Tom Kralidis <tomkralidis@gmail.com>
44#
5- # Copyright (c) 2025 Tom Kralidis
5+ # Copyright (c) 2026 Tom Kralidis
66#
77# Permission is hereby granted, free of charge, to any person
88# obtaining a copy of this software and associated documentation
@@ -201,7 +201,7 @@ def test_transform_bbox():
201201
202202@pytest .mark .parametrize ('original_filter, filter_crs, storage_crs, geometry_colum_name, expected' , [ # noqa
203203 pytest .param (
204- 'INTERSECTS (geometry, POINT(1 1))' ,
204+ 'S_INTERSECTS (geometry, POINT(1 1))' ,
205205 'http://www.opengis.net/def/crs/OGC/1.3/CRS84' ,
206206 None ,
207207 None ,
@@ -212,7 +212,7 @@ def test_transform_bbox():
212212 id = 'passthrough'
213213 ),
214214 pytest .param (
215- 'INTERSECTS (geometry, POINT(1 1))' ,
215+ 'S_INTERSECTS (geometry, POINT(1 1))' ,
216216 'http://www.opengis.net/def/crs/OGC/1.3/CRS84' ,
217217 None ,
218218 'custom_geom_name' ,
@@ -223,7 +223,7 @@ def test_transform_bbox():
223223 id = 'unnested-geometry-name'
224224 ),
225225 pytest .param (
226- 'some_attribute = 10 AND INTERSECTS (geometry, POINT(1 1))' ,
226+ 'some_attribute = 10 AND S_INTERSECTS (geometry, POINT(1 1))' ,
227227 'http://www.opengis.net/def/crs/OGC/1.3/CRS84' ,
228228 None ,
229229 'custom_geom_name' ,
@@ -238,7 +238,7 @@ def test_transform_bbox():
238238 id = 'nested-geometry-name'
239239 ),
240240 pytest .param (
241- '(some_attribute = 10 AND INTERSECTS (geometry, POINT(1 1))) OR '
241+ '(some_attribute = 10 AND S_INTERSECTS (geometry, POINT(1 1))) OR '
242242 'DWITHIN(geometry, POINT(2 2), 10, meters)' ,
243243 'http://www.opengis.net/def/crs/OGC/1.3/CRS84' ,
244244 None ,
@@ -262,7 +262,7 @@ def test_transform_bbox():
262262 id = 'complex-filter-name'
263263 ),
264264 pytest .param (
265- 'INTERSECTS (geometry, POINT(12.512829 41.896698))' ,
265+ 'S_INTERSECTS (geometry, POINT(12.512829 41.896698))' ,
266266 'http://www.opengis.net/def/crs/OGC/1.3/CRS84' ,
267267 'http://www.opengis.net/def/crs/EPSG/0/3004' ,
268268 None ,
@@ -273,7 +273,7 @@ def test_transform_bbox():
273273 id = 'unnested-geometry-transformed-coords'
274274 ),
275275 pytest .param (
276- 'some_attribute = 10 AND INTERSECTS (geometry, POINT(12.512829 41.896698))' , # noqa
276+ 'some_attribute = 10 AND S_INTERSECTS (geometry, POINT(12.512829 41.896698))' , # noqa
277277 'http://www.opengis.net/def/crs/OGC/1.3/CRS84' ,
278278 'http://www.opengis.net/def/crs/EPSG/0/3004' ,
279279 None ,
@@ -288,7 +288,7 @@ def test_transform_bbox():
288288 id = 'nested-geometry-transformed-coords'
289289 ),
290290 pytest .param (
291- '(some_attribute = 10 AND INTERSECTS (geometry, POINT(12.512829 41.896698))) OR ' # noqa
291+ '(some_attribute = 10 AND S_INTERSECTS (geometry, POINT(12.512829 41.896698))) OR ' # noqa
292292 'DWITHIN(geometry, POINT(12 41), 10, meters)' ,
293293 'http://www.opengis.net/def/crs/OGC/1.3/CRS84' ,
294294 'http://www.opengis.net/def/crs/EPSG/0/3004' ,
@@ -312,7 +312,7 @@ def test_transform_bbox():
312312 id = 'complex-filter-transformed-coords'
313313 ),
314314 pytest .param (
315- 'INTERSECTS (geometry, SRID=3857;POINT(1392921 5145517))' ,
315+ 'S_INTERSECTS (geometry, SRID=3857;POINT(1392921 5145517))' ,
316316 'http://www.opengis.net/def/crs/OGC/1.3/CRS84' ,
317317 'http://www.opengis.net/def/crs/EPSG/0/3004' ,
318318 None ,
@@ -323,7 +323,7 @@ def test_transform_bbox():
323323 id = 'unnested-geometry-transformed-coords-explicit-input-crs-ewkt'
324324 ),
325325 pytest .param (
326- 'INTERSECTS (geometry, POINT(1392921 5145517))' ,
326+ 'S_INTERSECTS (geometry, POINT(1392921 5145517))' ,
327327 'http://www.opengis.net/def/crs/EPSG/0/3857' ,
328328 'http://www.opengis.net/def/crs/EPSG/0/3004' ,
329329 None ,
@@ -334,7 +334,7 @@ def test_transform_bbox():
334334 id = 'unnested-geometry-transformed-coords-explicit-input-crs-filter-crs'
335335 ),
336336 pytest .param (
337- 'INTERSECTS (geometry, SRID=3857;POINT(1392921 5145517))' ,
337+ 'S_INTERSECTS (geometry, SRID=3857;POINT(1392921 5145517))' ,
338338 'http://www.opengis.net/def/crs/OGC/1.3/CRS84' ,
339339 'http://www.opengis.net/def/crs/EPSG/0/3004' ,
340340 None ,
@@ -345,7 +345,7 @@ def test_transform_bbox():
345345 id = 'unnested-geometry-transformed-coords-ewkt-crs-overrides-filter-crs'
346346 ),
347347 pytest .param (
348- 'INTERSECTS (geometry, POINT(12.512829 41.896698))' ,
348+ 'S_INTERSECTS (geometry, POINT(12.512829 41.896698))' ,
349349 'http://www.opengis.net/def/crs/OGC/1.3/CRS84' ,
350350 'http://www.opengis.net/def/crs/EPSG/0/3004' ,
351351 'custom_geom_name' ,
0 commit comments