18

I have a tif image file, and a .tfw world file (created from OSM data with Mapertive). How can I (using linux command line) convert that to a GeoTIFF file? (i.e. I want to have one file, not 2). I'm sure it's possible with gdal or something.

TomazicM
  • 25,601
  • 22
  • 29
  • 39
Amandasaurus
  • 892
  • 3
  • 10
  • 20

2 Answers2

22

So you want a geotiff instead of a tiff with a world file (.tfw). This should be the default in GDAL (http://www.gdal.org/frmt_gtiff.html) so:

gdal_translate -of GTiff input.tif ouput.tif

It will default to geotiff.

raaj
  • 285
  • 1
  • 10
HeikkiVesanto
  • 16,433
  • 2
  • 46
  • 68
10

Or you can use geotifcp (http://geotiff.maptools.org/geotifcp.html).

To dump the data from a GeoTiff to a world file try listgeo (http://geotiff.maptools.org/listgeo.html).

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
aberenyi
  • 181
  • 5