Odc-geo

Latest version: v0.4.8

Safety actively analyzes 682244 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

0.2.2

What's Changed
* Hide GDAL warnings in compress function in https://github.com/opendatacube/odc-geo/pull/57
* Account for `src_nodata` kwarg in `xr_reproject` by valpesendorfer in https://github.com/opendatacube/odc-geo/pull/60
* Handle GeoBoxes and Geometries that do not project cleanly in https://github.com/opendatacube/odc-geo/pull/61
* Deal with `nan` and `inf` values in a more robust way than before
* Add `Geometry.filter` and `Geometry.dropna` operations
* Removed `__array_interface__` from `Geometry` class
* it's deprecated in `shapely` and is not used, and newer numpy warns about it
* one can use a more explicit `numpy.asarray(g.coords)` instead anyway
* with this removed it's easier to make ndarrays containing `Geometry` objects

New Contributors
* valpesendorfer made their first contribution in https://github.com/opendatacube/odc-geo/pull/60

**Full Changelog**: https://github.com/opendatacube/odc-geo/compare/v0.2.1...v0.2.2

0.2.1

What's Changed

Fixes

- Fixes in `colorize|add_to` when plotting data with missing pixels
- Fixes `.odc.add_to` for maps with custom projections 50
- Better CRS info display for non-EPSG GeoBoxes
- Better Dask support for GeoBox, CRS and GeoBoxTiles classes (fixes hashing)

New Features

- Add `GeoBox.compat` to convert to datacube version of `GeoBox`
- New features `robust=True` in `colorize|add_to`, user percentiles for clipping: `vmin=2%, vmax=98%` 52
- Add GCP extraction utilities
- Add `Geometry[Point] -> XY[float]` conversion

Deprecations

Deprecated iteration over `Geometry` class to follow `shapely` deprecation of that, use `.geoms` property instead.

See this PR: https://github.com/opendatacube/odc-geo/pull/54


**Full Changelog**: https://github.com/opendatacube/odc-geo/compare/v0.2.0...v0.2.1

0.2.0

What's Changed
Fixes
* Geobox resolution display for rotated geoboxes in https://github.com/opendatacube/odc-geo/pull/47
* Some typos in docs (by RichardScottOZ)

New features
* Adding display on a map https://github.com/opendatacube/odc-geo/pull/48
* `.add_to(map)`
* `.map_bounds` to interface with folium/ipyleaflet
* Add more raster operations:
* `.to_rgba`
* `.colorize`
* `.compress` (jpeg,png,webp for map displays)
* Add `GeoBox.to_crs` method (convenient access to `output_geobox` method)
* More docs

**Full Changelog**: https://github.com/opendatacube/odc-geo/compare/v0.1.3...v0.2.0

0.1.3

What's Changed
* Support arbitrary geoboxes in xarray (PR 44)
* It is now possible to create `xarray.DataArray` with GeoBoxes that are not aligned to X/Y axis (i.e. have rotation/shear components)
* Add `chunks=` and `time=` optional arguments to `xr_zeros(..)`
* Add GeoBox model docs (PR 45)

0.1.2.post0

Bug fix release

- Fixes error in CRS construction logic for certain types of non-string inputs (PR: 41 courtesy of snowman2)

0.1.2

What's Changed

- `BoundingBox` is now CRS aware
- Changes to `GeoBox.from_` interfaces, `anchor=` replaces `align=`
- `.from_polygon` still accepts old-style `align=` for ease of datacube migration
- Adding `.odc.write_cog`, `.odc.to_cog` methods
- Adding `.odc.reproject` (only supports non-Dask inputs currently)
- Adding `.odc.output_geobox` - finds reasonable destination geobox when projecting to other CRS
- Packaging fixes (mypy types, thanks to snowman2)
- Fixes in `GeoBox` display code (was not handling empty cases well)
- Some code refactoring

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.