Skip to content

Releases: hyriver/pygeoutils

v0.13.11

09 Jan 04:35
Compare
Choose a tag to compare

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 the auto_expand option of rioxarray.clip_box.

v0.13.10

09 Dec 22:47
Compare
Choose a tag to compare

Release Notes

New Features

  • Add a new function called nested_polygons for determining nested (multi)polygons in a gepandas.GeoDataFrame or geopandas.GeoSeries.
  • Add a new function called geodf2xarray for rasterizing a geopandas.GeoDataFrame to a xarray.DataArray.

Internal Changes

  • Modify the codebase based on Refurb suggestions.
  • In xarray_geomask, if drop=True recalculate its transform to ensure the correct geo references are set if the shape of the dataset changes.

v0.13.9

05 Nov 04:30
Compare
Choose a tag to compare

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 to xarray_geomask in addition to polygon and multipolygon.
  • Fix deprecation warning of pandas when changing the geometry column of a GeoDataFrame in then break_lines function.

v0.13.8

05 Nov 04:27
Compare
Choose a tag to compare

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 use rasterio engine to make sure all rioxarray attrs are read.

v0.13.7

04 Nov 22:02
Compare
Choose a tag to compare

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 use rasterio engine to make sure all rioxarray attrs are read.

v0.13.6

30 Aug 17:31
Compare
Choose a tag to compare

Release Notes

Internal Changes

  • Add the missing PyPi classifiers for the supported Python versions.

v0.13.5

29 Aug 21:32
Compare
Choose a tag to compare

Release Notes

Breaking Changes

  • Append "Error" to all exception classes for conforming to PEP-8 naming conventions.

v0.13.2

14 Jun 05:29
Compare
Choose a tag to compare

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

12 Jun 04:48
Compare
Choose a tag to compare

Release Notes

New Features

  • Add support for passing a custom bounding box in the Coordinates class. The default is the bounds of EPSG: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 the EPSG: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

03 Apr 21:59
Compare
Choose a tag to compare

Release Notes

Internal Changes

  • Write nodata attribute using rioxarray in geotiff2xarray since the clipping operation of rioxarray uses this value as fill value.

Bug Fixes

  • In the break_lines function, convert MultiLineString into LineString since shapely.ops.substring only accepts LineString.