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
8 changes: 4 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:

permissions:
contents: read
id-token: write

jobs:
deploy:
Expand All @@ -23,7 +24,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
Expand All @@ -33,7 +34,6 @@ jobs:
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
repository-url: https://upload.pypi.org/legacy/
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.18.0"
version = "1.19.0"
description = "raster processing toolkit"
readme = "README.md"
authors = [
Expand Down
5 changes: 2 additions & 3 deletions rasters/wrap_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ def wrap_geometry(geometry: Any, crs: Union[CRS, str] = None) -> SpatialGeometry
# 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)):
# If the geometry is already a SpatialGeometry, return it as is
# If the geometry is already a SpatialGeometry (e.g., BBox), return it as is.
if isinstance(geometry, SpatialGeometry):
return geometry

if isinstance(geometry, GeoSeries) and all(geometry.geom_type == 'Point'):
Expand Down
Loading