mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
* [warp_add_rpcs] initial update to reproject to support rpcs * catch kwargs in _calculate_default_transform * fix allocation of crs to wrong dataset (was src, now dst) in _calculate_default_transform. Specifically where we went from GDALCreateGenImgProjTransformer -> GDALCreateGenImgProjTransformer2 * pass kwargs to calculate_default_transform (to be passed to transformer * update docstrings * update documentation * add debug messages for kwargs used to set Transformer options * Don't capitalize RPC_DEM transformer option value, as it might be a path * includes existing changes from https://github.com/mapbox/rasterio/pull/2030, better support for computation of calculate_default_transform with just gcps or rpcs * adds testse * Remove an empty line Mainly to trigger a new build on travis-ci.com * add new test file (Largely derived from RGB.byte.tif) * Fix incorrectly encoding RPC metadata as transform options Was checking for transformer option RPC_DEM in the RPC metadata by mistake Co-authored-by: Sebastien Tremblay-Johnston <sebastien.tremblayjohnston@mdacorporation.com> Co-authored-by: Sean Gillies <sean@mapbox.com> Co-authored-by: Sean Gillies <sean.gillies@gmail.com>
75 lines
4.8 KiB
Plaintext
75 lines
4.8 KiB
Plaintext
<VRTDataset rasterXSize="791" rasterYSize="718">
|
|
<Metadata>
|
|
<MDI key="AREA_OR_POINT">Area</MDI>
|
|
</Metadata>
|
|
<Metadata domain="RPC">
|
|
<MDI key="ERR_BIAS">5.000000000000000e-01</MDI>
|
|
<MDI key="ERR_RAND">5.000000000000000e-01</MDI>
|
|
<MDI key="HEIGHT_OFF">8.900000000000000e+01</MDI>
|
|
<MDI key="HEIGHT_SCALE">7.010000000000000e+02</MDI>
|
|
<MDI key="LAT_OFF">4.921990000000000e+01</MDI>
|
|
<MDI key="LAT_SCALE">3.093000000000000e-01</MDI>
|
|
<MDI key="LINE_DEN_COEFF">1.000000000000000e+00 9.222511757408093e-04 9.437608823165506e-04 0.000000000000000e+00 3.227813186168402e-07 0.000000000000000e+00 -1.209023819818124e-08 1.847595567040099e-06 5.799102000140301e-07 -4.460833665210641e-07 0.000000000000000e+00 0.000000000000000e+00 -6.034797295293836e-08 0.000000000000000e+00 1.667569505660956e-07 -2.974442475526043e-08 0.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00</MDI>
|
|
<MDI key="LINE_NUM_COEFF">2.001303029283497e-03 -1.860717345625879e-01 -1.127856422682348e+00 -4.632230551975493e-05 1.019881908582774e-03 5.673855447822687e-08 -8.698433522294479e-08 -3.226759855088540e-03 -1.332756784778704e-03 0.000000000000000e+00 1.215249975522747e-08 -7.132377372126199e-07 2.017197679474549e-06 8.275158167048898e-08 -1.210585983708413e-06 -1.078353887170730e-06 5.032973521799926e-07 0.000000000000000e+00 1.716128319528072e-08 0.000000000000000e+00</MDI>
|
|
<MDI key="LINE_OFF">5760</MDI>
|
|
<MDI key="LINE_SCALE">5761</MDI>
|
|
<MDI key="LONG_OFF">-1.231760000000000e+02</MDI>
|
|
<MDI key="LONG_SCALE">4.534000000000000e-01</MDI>
|
|
<MDI key="SAMP_DEN_COEFF">1.000000000000000e+00 9.278262976396983e-05 1.781926782031641e-03 -6.510570023623242e-04 -2.216055849873611e-04 9.161290674286373e-07 3.126587074446549e-06 3.565361629769621e-04 -2.582447705973245e-05 -9.228544337667984e-05 5.298085166219470e-07 1.025006482963347e-05 7.478466127324454e-07 -1.692384939549647e-06 -1.124443674146492e-05 -1.793628425616464e-07 -2.791740249303018e-07 -2.820306656137878e-07 4.593502012060843e-08 1.035174961061441e-07</MDI>
|
|
<MDI key="SAMP_NUM_COEFF">2.202618393703774e-02 1.185886131197477e+00 -2.151710781539888e-01 3.045218075295352e-02 2.420581655336635e-03 -4.398438360671764e-06 5.871407208028941e-05 -2.166676957828599e-02 -4.180699044156175e-04 -2.753492566174621e-05 -7.124639699900795e-06 -1.101195320211651e-05 -1.119110912711932e-04 -1.096184653732520e-04 1.183590823839227e-04 1.382552349641905e-05 1.997075688106731e-05 2.673528192748438e-05 -1.230207121465409e-06 -2.830467933081173e-06</MDI>
|
|
<MDI key="SAMP_OFF">3724</MDI>
|
|
<MDI key="SAMP_SCALE">3725</MDI>
|
|
</Metadata>
|
|
<VRTRasterBand dataType="Byte" band="1">
|
|
<Metadata>
|
|
<MDI key="STATISTICS_MAXIMUM">255</MDI>
|
|
<MDI key="STATISTICS_MEAN">29.947726688477</MDI>
|
|
<MDI key="STATISTICS_MINIMUM">0</MDI>
|
|
<MDI key="STATISTICS_STDDEV">52.340921626611</MDI>
|
|
</Metadata>
|
|
<NoDataValue>0</NoDataValue>
|
|
<ColorInterp>Red</ColorInterp>
|
|
<SimpleSource>
|
|
<SourceFilename relativeToVRT="1">RGB.byte.tif</SourceFilename>
|
|
<SourceBand>1</SourceBand>
|
|
<SourceProperties RasterXSize="791" RasterYSize="718" DataType="Byte" BlockXSize="791" BlockYSize="3" />
|
|
<SrcRect xOff="0" yOff="0" xSize="791" ySize="718" />
|
|
<DstRect xOff="0" yOff="0" xSize="791" ySize="718" />
|
|
</SimpleSource>
|
|
</VRTRasterBand>
|
|
<VRTRasterBand dataType="Byte" band="2">
|
|
<Metadata>
|
|
<MDI key="STATISTICS_MAXIMUM">255</MDI>
|
|
<MDI key="STATISTICS_MEAN">44.516147889382</MDI>
|
|
<MDI key="STATISTICS_MINIMUM">0</MDI>
|
|
<MDI key="STATISTICS_STDDEV">56.934318291876</MDI>
|
|
</Metadata>
|
|
<NoDataValue>0</NoDataValue>
|
|
<ColorInterp>Green</ColorInterp>
|
|
<SimpleSource>
|
|
<SourceFilename relativeToVRT="1">RGB.byte.tif</SourceFilename>
|
|
<SourceBand>2</SourceBand>
|
|
<SourceProperties RasterXSize="791" RasterYSize="718" DataType="Byte" BlockXSize="791" BlockYSize="3" />
|
|
<SrcRect xOff="0" yOff="0" xSize="791" ySize="718" />
|
|
<DstRect xOff="0" yOff="0" xSize="791" ySize="718" />
|
|
</SimpleSource>
|
|
</VRTRasterBand>
|
|
<VRTRasterBand dataType="Byte" band="3">
|
|
<Metadata>
|
|
<MDI key="STATISTICS_MAXIMUM">255</MDI>
|
|
<MDI key="STATISTICS_MEAN">48.113056354743</MDI>
|
|
<MDI key="STATISTICS_MINIMUM">0</MDI>
|
|
<MDI key="STATISTICS_STDDEV">60.112778509941</MDI>
|
|
</Metadata>
|
|
<NoDataValue>0</NoDataValue>
|
|
<ColorInterp>Blue</ColorInterp>
|
|
<SimpleSource>
|
|
<SourceFilename relativeToVRT="1">RGB.byte.tif</SourceFilename>
|
|
<SourceBand>3</SourceBand>
|
|
<SourceProperties RasterXSize="791" RasterYSize="718" DataType="Byte" BlockXSize="791" BlockYSize="3" />
|
|
<SrcRect xOff="0" yOff="0" xSize="791" ySize="718" />
|
|
<DstRect xOff="0" yOff="0" xSize="791" ySize="718" />
|
|
</SimpleSource>
|
|
</VRTRasterBand>
|
|
</VRTDataset>
|