Releases: hyriver/pygeoutils
Releases · hyriver/pygeoutils
v0.13.11
Release Notes
Bug Fixes
- Fix an in issue
xarray_geomask
where for geometries that are smaller than a single pixel, the bbox clipping operation fails. This is fixed by using theauto_expand
option ofrioxarray.clip_box
.
v0.13.10
Release Notes
New Features
- Add a new function called
nested_polygons
for determining nested (multi)polygons in agepandas.GeoDataFrame
orgeopandas.GeoSeries
. - Add a new function called
geodf2xarray
for rasterizing ageopandas.GeoDataFrame
to axarray.DataArray
.
Internal Changes
- Modify the codebase based on Refurb suggestions.
- In
xarray_geomask
, ifdrop=True
recalculate its transform to ensure the correct geo references are set if the shape of the dataset changes.
v0.13.9
Release Notes
Internal Changes
- Improve the performance of
xarray_geomask
significantly by first clipping the data to the geometry's bounding box, then if the geometry is a polygon, masking the data with the polygon. This is much faster than directly masking the data with the polygon. Also, support passing a bounding box toxarray_geomask
in addition to polygon and multipolygon. - Fix deprecation warning of
pandas
when changing the geometry column of aGeoDataFrame
in thenbreak_lines
function.
v0.13.8
Release Notes
Internal Changes
- When combining the responses, now
dask
handles data chunking more efficiently. This is especially important for handling large responses from WMS services. - Improve type hints for CRS-related arguments of all functions by including string, integer, and
pyproj.CRS
types. - In
gtiff2xarray
userasterio
engine to make sure allrioxarray
attrs are read.
v0.13.7
Release Notes
Internal Changes
- When combining the responses, now
dask
handles data chunking more efficiently. This is especially important for handling large responses from WMS services. - Improve type hints for CRS-related arguments of all functions by including string, integer, and
pyproj.CRS
types. - In
gtiff2xarray
userasterio
engine to make sure allrioxarray
attrs are read.
v0.13.6
Release Notes
Internal Changes
- Add the missing PyPi classifiers for the supported Python versions.
v0.13.5
Release Notes
Breaking Changes
- Append "Error" to all exception classes for conforming to PEP-8 naming conventions.
v0.13.2
Release Notes
Breaking Changes
- Set the minimum supported version of Python to 3.8 since many of the dependencies such as
xarray
,pandas
,rioxarray
have dropped support for Python 3.7. - Bump min versions of
rioxarray
to 0.10 since it adds reading/writing GCPs.
Internal Changes
- Use micromamba for running tests and use nox for linting in CI.
v0.13.1
Release Notes
New Features
- Add support for passing a custom bounding box in the
Coordinates
class. The default is the bounds ofEPSG:4326
to retain backward compatibility. This new class parameter allows a user to check if a list of coordinates is within a custom bounding box. The bounds should be theEPSG:4326
coordinate system. - Add a new function called
geometry_list
for converting a list of multi-geometries to a list of geometries.
v0.13.0
Release Notes
Internal Changes
- Write
nodata
attribute usingrioxarray
ingeotiff2xarray
since the clipping operation ofrioxarray
uses this value as fill value.
Bug Fixes
- In the
break_lines
function, convertMultiLineString
intoLineString
sinceshapely.ops.substring
only acceptsLineString
.