Opened 13 years ago

Closed 13 years ago

#4158 closed defect (invalid)

gdal_translate for converting to GeoTIFF

Reported by: alexw2011 Owned by: warmerdam
Priority: high Milestone:
Component: Utilities Version: 1.6.0
Severity: normal Keywords:
Cc:

Description

HI, what is the complete command line for converting a .tif to a GeoTIFF with stripped data block approach and must use the GDAL NoData Tag to hold the metadata? thanks,

Alex

Change History (1)

comment:1 by warmerdam, 13 years ago

Resolution: invalid
Status: newclosed

Alex,

I'm not sure a ticket is the right context for a question like this. But it would be something like:

gdal_translate in.tif out.tif -co TILED=NO -a_nodata 255

As long as you don't suppress it, GDAL will write nodata values in it's special nodata tag, and will produce geotiff files (assuming there is already a geotransform in a world file or source geotiff tags). If the source file does not have a geotransform or coordinate system you can assign them with the -a_ullr and -a_srs switches. I'll let you read about them in:

http://www.gdal.org/gdal_translate.html

Note: See TracTickets for help on using tickets.