Opened 23 years ago
Last modified 23 years ago
#63 closed defect (fixed)
Writing georeferenced tiff files sometimes broken
Reported by: | warmerdam | Owned by: | warmerdam |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
An action like: gdal_translate -srcwin 0 0 100 100 utm.tif out.tif will result in a out.tif having the first line (or fiew lines) of the output file corrupted. It appears this is because the GeoTIFF information is not written at the end of the file, but instead written right after the directory which is before the regular data. But with the geotiff info added (while closing the file) the total directory size is larger than when it was initially crystalized before the image writing began causing it to overrun the image data.
Note:
See TracTickets
for help on using tickets.