forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VRT warp: fix issue with partial blocks at the right/bottom and dest …
…nodata values that are different per band (fixes OSGeo#6581) git-svn-id: https://svn.osgeo.org/gdal/trunk@34551 f0d54148-0727-0410-94bb-9a71ac55c965
- Loading branch information
Showing
4 changed files
with
110 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<VRTDataset rasterXSize="1280" rasterYSize="512" subClass="VRTWarpedDataset"> | ||
<VRTRasterBand dataType="Byte" band="1" subClass="VRTWarpedRasterBand"> | ||
<NoDataValue>255</NoDataValue> | ||
<ColorInterp>Red</ColorInterp> | ||
</VRTRasterBand> | ||
<VRTRasterBand dataType="Byte" band="2" subClass="VRTWarpedRasterBand"> | ||
<NoDataValue>0</NoDataValue> | ||
<ColorInterp>Green</ColorInterp> | ||
</VRTRasterBand> | ||
<VRTRasterBand dataType="Byte" band="3" subClass="VRTWarpedRasterBand"> | ||
<NoDataValue>255</NoDataValue> | ||
<ColorInterp>Blue</ColorInterp> | ||
</VRTRasterBand> | ||
<BlockXSize>512</BlockXSize> | ||
<BlockYSize>128</BlockYSize> | ||
<GDALWarpOptions> | ||
<WarpMemoryLimit>6.71089e+07</WarpMemoryLimit> | ||
<ResampleAlg>NearestNeighbour</ResampleAlg> | ||
<WorkingDataType>Byte</WorkingDataType> | ||
<Option name="INIT_DEST">NO_DATA</Option> | ||
<SourceDataset relativeToVRT="1">bug6581_src.vrt</SourceDataset> | ||
<Transformer> | ||
<ApproxTransformer> | ||
<MaxError>0.125</MaxError> | ||
<BaseTransformer> | ||
<GenImgProjTransformer> | ||
<SrcGeoTransform>573452.527314628824,63.9710696713882214,0,4387441.90074732807,0,-63.9710696713883777</SrcGeoTransform> | ||
<SrcInvGeoTransform>-8964.24790550457146,0.0156320662627165846,0,68584.7825163012749,0,-0.0156320662627165465</SrcInvGeoTransform> | ||
<DstGeoTransform>557056,128,0,4325376,0,-128</DstGeoTransform> | ||
<DstInvGeoTransform>-4352,0.0078125,0,33792,0,-0.0078125</DstInvGeoTransform> | ||
</GenImgProjTransformer> | ||
</BaseTransformer> | ||
</ApproxTransformer> | ||
</Transformer> | ||
<BandList> | ||
<BandMapping src="1" dst="1"> | ||
<DstNoDataReal>255</DstNoDataReal> | ||
<DstNoDataImag>0</DstNoDataImag> | ||
</BandMapping> | ||
<BandMapping src="2" dst="2"> | ||
<DstNoDataReal>0</DstNoDataReal> | ||
<DstNoDataImag>0</DstNoDataImag> | ||
</BandMapping> | ||
<BandMapping src="3" dst="3"> | ||
<DstNoDataReal>255</DstNoDataReal> | ||
<DstNoDataImag>0</DstNoDataImag> | ||
</BandMapping> | ||
</BandList> | ||
</GDALWarpOptions> | ||
</VRTDataset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<VRTDataset rasterXSize="1853" rasterYSize="1343"> | ||
<VRTRasterBand dataType="Byte" band="1"> | ||
<ColorInterp>Red</ColorInterp> | ||
<ComplexSource> | ||
<SourceFilename relativeToVRT="1">byte.tif</SourceFilename> | ||
<SourceBand>1</SourceBand> | ||
<SourceProperties RasterXSize="20" RasterYSize="20" DataType="Byte" BlockXSize="20" BlockYSize="20" /> | ||
<SrcRect xOff="0" yOff="0" xSize="20" ySize="20" /> | ||
<DstRect xOff="0" yOff="0" xSize="1853" ySize="1343" /> | ||
<ScaleOffset>127</ScaleOffset> | ||
<ScaleRatio>0</ScaleRatio> | ||
</ComplexSource> | ||
</VRTRasterBand> | ||
<VRTRasterBand dataType="Byte" band="2"> | ||
<ColorInterp>Green</ColorInterp> | ||
<ComplexSource> | ||
<SourceFilename relativeToVRT="1">byte.tif</SourceFilename> | ||
<SourceBand>2</SourceBand> | ||
<SourceProperties RasterXSize="20" RasterYSize="20" DataType="Byte" BlockXSize="20" BlockYSize="20" /> | ||
<SrcRect xOff="0" yOff="0" xSize="20" ySize="20" /> | ||
<DstRect xOff="0" yOff="0" xSize="1853" ySize="1343" /> | ||
<ScaleOffset>127</ScaleOffset> | ||
<ScaleRatio>0</ScaleRatio> | ||
</ComplexSource> | ||
</VRTRasterBand> | ||
<VRTRasterBand dataType="Byte" band="3"> | ||
<ColorInterp>Blue</ColorInterp> | ||
<ComplexSource> | ||
<SourceFilename relativeToVRT="1">byte.tif</SourceFilename> | ||
<SourceBand>3</SourceBand> | ||
<SourceProperties RasterXSize="20" RasterYSize="20" DataType="Byte" BlockXSize="20" BlockYSize="20" /> | ||
<SrcRect xOff="0" yOff="0" xSize="20" ySize="20" /> | ||
<DstRect xOff="0" yOff="0" xSize="1853" ySize="1343" /> | ||
<ScaleOffset>127</ScaleOffset> | ||
<ScaleRatio>0</ScaleRatio> | ||
</ComplexSource> | ||
</VRTRasterBand> | ||
</VRTDataset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters