Skip to content

Commit 511578a

Browse files
authored
Fix pygeofilter reprojection tests (#1940)
* Fix reprojection geom * Update test_util.py
1 parent d7c7122 commit 511578a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ def test_prefetcher():
496496
None,
497497
pygeofilter.ast.GeometryIntersects(
498498
pygeofilter.ast.Attribute(name='geometry'),
499-
Geometry({'type': 'Point', 'coordinates': (2313681.8086284213, 4641307.939955416)}) # noqa
499+
Geometry({'type': 'Point', 'coordinates': (2313681.808628421, 4641307.939955416), 'crs': {'properties': {'name': 'urn:ogc:def:crs:EPSG::3004'}}}) # noqa
500500
),
501501
id='unnested-geometry-transformed-coords-explicit-input-crs-ewkt'
502502
),
@@ -507,7 +507,7 @@ def test_prefetcher():
507507
None,
508508
pygeofilter.ast.GeometryIntersects(
509509
pygeofilter.ast.Attribute(name='geometry'),
510-
Geometry({'type': 'Point', 'coordinates': (2313681.8086284213, 4641307.939955416)}) # noqa
510+
Geometry({'type': 'Point', 'coordinates': (2313681.808628421, 4641307.939955416), 'crs': {'properties': {'name': 'urn:ogc:def:crs:EPSG::3004'}}}) # noqa
511511
),
512512
id='unnested-geometry-transformed-coords-explicit-input-crs-filter-crs'
513513
),
@@ -518,7 +518,7 @@ def test_prefetcher():
518518
None,
519519
pygeofilter.ast.GeometryIntersects(
520520
pygeofilter.ast.Attribute(name='geometry'),
521-
Geometry({'type': 'Point', 'coordinates': (2313681.8086284213, 4641307.939955416)}) # noqa
521+
Geometry({'type': 'Point', 'coordinates': (2313681.808628421, 4641307.939955416), 'crs': {'properties': {'name': 'urn:ogc:def:crs:EPSG::3004'}}}) # noqa
522522
),
523523
id='unnested-geometry-transformed-coords-ewkt-crs-overrides-filter-crs'
524524
),

0 commit comments

Comments
 (0)