Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "rasters"
version = "1.7.0"
version = "1.7.1"
description = "raster processing toolkit"
readme = "README.md"
authors = [
Expand Down
2 changes: 1 addition & 1 deletion rasters/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.7.0
1.7.1
5 changes: 5 additions & 0 deletions rasters/wrap_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ def wrap_geometry(geometry: Any, crs: Union[CRS, str] = None) -> SpatialGeometry
from .multi_point import MultiPoint
from .polygon import Polygon
from .multi_polygon import MultiPolygon
from .raster_geometry import RasterGeometry

if isinstance(geometry, RasterGeometry):
# If the geometry is a RasterGeometry, return it as is
return geometry

# Check if the geometry is already a SpatialGeometry by checking for specific types
if isinstance(geometry, (Point, MultiPoint, Polygon, MultiPolygon)):
Expand Down