Opened 9 years ago
Last modified 9 years ago
#5909 closed defect
multiple gdalwarp invocations only preserves last image — at Version 1
Reported by: | Robert Coup | Owned by: | Even Rouault |
---|---|---|---|
Priority: | high | Milestone: | 1.11.3 |
Component: | GDAL_Raster | Version: | 1.11.2 |
Severity: | normal | Keywords: | warp |
Cc: |
Description (last modified by )
somewhere between these two revisions (github:OSGeo/gdal/trunk), multiple gdalwarp invocations to the same output seem to end up with only the final input file's contents.
Good: e6cdad5a884f18e16c3660300d0fae542ff10a1b Bad: 4418c47ad62a42363357e03a33ecab674e6ac973
Built with JP2KAK, which it's using for the below.
Output changes (out.oldgdal.tif => correct, out.newgdal.tif => wrong):
gdalwarp '-multi' '-of' 'GTiff' '-co' 'TILED=YES' '-co' 'BIGTIFF=IF_SAFER' \ '-te' '174.255653381' '-36.1153205766' '174.290066734' '-36.1101806196' \ '-dstalpha' '-wo' 'INIT_DEST=0,0,0,0' '-ts' '4480' '669' \ '-s_srs' '+proj=tmerc +lat_0=0 +lon_0=173 +k=0.9996 +x_0=1600000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +wktext' \ '-t_srs' '+proj=longlat +datum=WGS84 +no_defs +wktext' \ '--config' 'GDAL_CACHEMAX' '128' '-wm' '128' '-r' 'cubic' \ '00000010.jp2' 'out.tif' gdalwarp '-multi' '-s_srs' '+proj=tmerc +lat_0=0 +lon_0=173 +k=0.9996 +x_0=1600000 +y_0=10000000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +wktext' \ '-t_srs' '+proj=longlat +datum=WGS84 +no_defs +wktext' \ '--config' 'GDAL_CACHEMAX' '128' '-wm' '128' '-r' 'cubic' \ '0000001e.jp2' 'out.tif'
Possibly relevant commits from a quick look, still working through them, and trying to simplify the test case:
- Those relating to #5387
- 3793b0e (JP2KAK)
Note:
See TracTickets
for help on using tickets.
Argh, file upload issues. Dropbox link coming soon