Skip to content
Merged
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
25 changes: 14 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@

#### Fixed

- `polygonize(return_type='geopandas')` now auto-detects the raster's
affine transform from `attrs['transform']` (xrspatial.geotiff
convention) or `rio.transform()` (rioxarray) when the caller did
not pass an explicit `transform=` argument. Previously the function
auto-detected `attrs['crs']` and stamped it on the `GeoDataFrame`
while leaving the geometries in pixel space, so the CRS attribute
claimed projected space but the coordinates did not match. Callers
who relied on the pre-fix behaviour and expected pixel-space
geometries from a rasterio-loaded raster should pass `transform=
np.array([1, 0, 0, 0, 1, 0])` explicitly, or strip the transform
attr before calling polygonize. (#2536)
- `polygonize` now auto-detects the raster's affine transform from
`attrs['transform']` (xrspatial.geotiff convention) or
`rio.transform()` (rioxarray) when the caller did not pass an
explicit `transform=` argument. The auto-detected transform is
applied inside `_scan`, so it covers every `return_type` option
(`numpy`, `awkward`, `geopandas`, `spatialpandas`, `geojson`).
Previously `polygonize(return_type='geopandas')` auto-detected
`attrs['crs']` and stamped it on the `GeoDataFrame` while leaving
the geometries in pixel space, so the CRS attribute claimed
projected space but the coordinates did not match. Callers who
relied on the pre-fix behaviour and expected pixel-space geometries
from a rasterio-loaded raster should pass
`transform=np.array([1, 0, 0, 0, 1, 0])` explicitly, or strip the
transform attr before calling polygonize. (#2536)


### Version 0.10.0 - 2026-05-27
Expand Down
Loading