opendatacube / odc-geo

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

Add GCPGeoBox #62

Closed Kirill888 closed 2 years ago

Kirill888 commented 2 years ago

Generalizes concept of GeoBox to include any bounded pixel plane with some well-defined mapping between pixel and world planes. Original GeoBox is a version of that with linear mapping pix<->wld.

This PR moves common properties of "geoboxes" into GeoBoxBase and adds GCPGeoBox class that handles ground control point based geoboxes.

Other coincidental changes

codecov[bot] commented 2 years ago

Codecov Report

Merging #62 (3a60b2c) into develop (da8fbd3) will increase coverage by 0.41%. The diff coverage is 97.91%.

@@             Coverage Diff             @@
##           develop      #62      +/-   ##
===========================================
+ Coverage    97.42%   97.83%   +0.41%     
===========================================
  Files           22       23       +1     
  Lines         3179     3515     +336     
===========================================
+ Hits          3097     3439     +342     
+ Misses          82       76       -6     
Impacted Files Coverage Δ
odc/geo/_map.py 93.84% <73.33%> (-6.16%) :arrow_down:
odc/geo/math.py 97.58% <89.83%> (-2.42%) :arrow_down:
odc/geo/ui.py 98.14% <98.88%> (+0.81%) :arrow_up:
odc/geo/geobox.py 98.60% <99.26%> (+0.73%) :arrow_up:
odc/geo/_xr_interop.py 99.71% <100.00%> (+0.36%) :arrow_up:
odc/geo/gcp.py 100.00% <100.00%> (ø)
odc/geo/geom.py 100.00% <100.00%> (ø)
odc/geo/overlap.py 100.00% <100.00%> (ø)
odc/geo/types.py 99.53% <100.00%> (ø)
odc/geo/warp.py 78.57% <100.00%> (+14.50%) :arrow_up:
... and 5 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

github-actions[bot] commented 2 years ago

🚀 Deployed on https://63020a702a41dd754ddb1a25--odc-geo-docs.netlify.app

github-actions[bot] commented 2 years ago

🚀 Deployed on https://630210f5c261ee7df305577e--odc-geo-docs.netlify.app