opendatacube / odc-geo

GeoBox and geometry utilities extracted from datacube-core
https://odc-geo.readthedocs.io/en/latest/
Apache License 2.0
80 stars 12 forks source link

Update so tests pass with latest versions of upstream libraries. #171

Closed SpacemanPaul closed 2 months ago

SpacemanPaul commented 2 months ago
  1. Directly download naturalearth countries dataset. (See #165)

    Noting that the country dataset from naturalearth used previously is NOT packaged with geodatasets - so we may as well just hardcode the url and download it directly.

  2. Refactor use of np.find_common_type (which is not available in Numpy 2.x) to np.result_type (which is).

  3. Check if the gcps metadata field on the xarray is of string type, and if so run json.loads over it. (Required for rioxarray>=0.15.6 as it now stores the gcps definition as a string)

github-actions[bot] commented 2 months ago

🚀 Deployed on https://6695fae4c84a2025cabed6d7--odc-geo-docs.netlify.app

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 94.73684% with 2 lines in your changes missing coverage. Please review.

Project coverage is 95.44%. Comparing base (d020f21) to head (65a16cb).

Files Patch % Lines
odc/geo/_blocks.py 77.77% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #171 +/- ## =========================================== - Coverage 95.45% 95.44% -0.02% =========================================== Files 31 31 Lines 5505 5533 +28 =========================================== + Hits 5255 5281 +26 - Misses 250 252 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.