Releases: hyriver/pygeoutils
Releases · hyriver/pygeoutils
v0.13.12
Release Notes
Breaking Changes
- The input geo-dataframes to
break_lines
now should be in a projected CRS.
New Features
- Significant improvements in the accuracy and performance of
nested_polygons
by changing the logic. Now, the function first determines the nested polygons by comparing the centroids of the geometries with their geometry and then picks the largest geometry from each group of nested geometries. - Add a new function called
query_indicies
which is a wrapper aroundgeopandas.sindex.query_bulk
. However, instead of returning an array of positional indices, it returns a dictionary of indices where keys are the indices of the input geometry and values are a list of indices of the tree geometries that intersect with the input geometry.
Internal Changes
- Simplify
geo2polygon
by making the two CRS arguments optional and only reproject if CRS values are given and different. - Apply the geometry mask in
gtiff2xarray
even if the input geometry is a bounding box since the mask might not be the same geometry as the one that was used during data query. - Fully migrate
setup.cfg
andsetup.py
topyproject.toml
. - Convert relative imports to absolute with
absolufy-imports
. - Sync all patch versions of HyRiver packages to x.x.12.
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.