Opened 13 years ago

Closed 13 years ago

#1225 closed defect (worksforme) creates as output non-standard GeoTIFF images

Reported by: gregcoats@… Owned by: warmerdam
Priority: normal Milestone: 1.4.2
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords:
Cc: gregcoats@…

Description (last modified by warmerdam)

When using to mosaic together a series of smaller GeoTIFF images, the created GeoTIFF output is non-standard. For one example, feeding the created GeoTIFF as an input to geotifcp to create as output a tiled GeoTIFF produces an immediate Segmentation fault. For another example, the file size of the created GeoTIFF is much larger than necessary: in one case the created GeoTIFF was 84,656,520 bytes but simply copying the GeoTIFF with geotifcp without specifying any option yields a proper GeoTIFF of only 60,933,970 bytes. In another case, specifying -co "INTERLEAVE=PIXEL" resulted in creating a non-standard GeoTIFF of 127.8 MB, that Photoshop was able to open and save without compression in only 58.1 MB. I also found that specifying -co "INTERLEAVE=PIXEL" -co "TILED=YES" -co "BLOCKXSIZE=256" -co "BLOCKYSIZE=256" resulted in a visibly corrupt image, with errant red, green, and blue pixels scattered in various pats of the image. I access GDAL through William Kyngesburye's GIS Libs 3.1.1, under Mac OS X 10.4. For now, the work around is to use without specifying any options, and then immediate feeding that as an input to gdal_translate and specify the desired -co options.

Greg Coats

Change History (3)

comment:2 Changed 13 years ago by warmerdam

Component: PythonBindingsGDAL_Raster
Description: modified (diff)
Milestone: 1.4.1
Priority: highnormal
Severity: majornormal


Per bug #1470, I recently fixed some issues with file bloat and the geotiff writer.

Please retest with GDAL trunk (or a nightly snapshot) and see if the problem still occurs. If so, I will have Mateusz try and reproduce the problem and we can go from there.

I am reclassifying this as GDAL_Raster since I don't see any evidence the problem relates to the python bindings.

comment:3 Changed 13 years ago by warmerdam


Moving to 1.4.2 pending feedback. No point in obsessing over this for 1.4.1.

comment:4 Changed 13 years ago by warmerdam

Resolution: worksforme
Status: assignedclosed

Greg writes:

Frank, After substantial testing, I find that using the GDAL framework v1.4.1-1 for Mac OS > X, available at, I no longer > see the problems that caused me originally write up this bug report. Thank You Very Much!



Note: See TracTickets for help on using tickets.