Skip to content

Commit 9db8869

Browse files
rename to spatial tiler
1 parent bfc52d6 commit 9db8869

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stac_pydantic/api/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def validate_datetime(cls, v):
9090
return v
9191

9292
@property
93-
def geometry(self) -> Optional[_GeometryBase]:
93+
def spatial_filter(self) -> Optional[_GeometryBase]:
9494
"""Return a geojson-pydantic object representing the spatial filter for the search request.
9595
9696
Check for both because the ``bbox`` and ``intersects`` parameters are mutually exclusive.

tests/test_api_extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ def test_fields_filter():
3333

3434
def test_search_geometry_bbox():
3535
search = Search(collections=["foo", "bar"], bbox=[0, 0, 1, 1])
36-
geom1 = shape(search.geometry)
36+
geom1 = shape(search.spatial_filter)
3737
geom2 = Polygon.from_bounds(*search.bbox)
3838
assert (geom1.intersection(geom2).area / geom1.union(geom2).area) == 1.0

0 commit comments

Comments
 (0)