Closed Kirill888 closed 2 years ago
Merging #62 (3a60b2c) into develop (da8fbd3) will increase coverage by
0.41%
. The diff coverage is97.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.
Generalizes concept of
GeoBox
to include any bounded pixel plane with some well-defined mapping between pixel and world planes. OriginalGeoBox
is a version of that with linear mappingpix<->wld
.This PR moves common properties of "geoboxes" into
GeoBoxBase
and addsGCPGeoBox
class that handles ground control point based geoboxes.xx.odc.geobox
will now returnGCPGeoBox
for GCP sources loaded with rioxarrayxr_coords|xr_zeros
can create xarrays fromGCPGeoBox
xr_reproject
accepts GCP registered arrays as sources, but not as destinations as this is not exposed in rasterioxx.odc.add_to(map)
also works for GCP based sourcesOther coincidental changes
Geometry
can now be constructed from geojson.dropna
for polygons with holes