11

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.

11

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 input.tif ouput.tif

It will default to geotiff.

  • You also need to ensure that a coordinate system is set with -a_srs otherwise it is kind of a malformed GeoTIFF. – mdsumner Feb 25 '14 at 20:29
9

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

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

Updated links as of 2017-05-21

http://geotiff.maptools.org/geotifcp.html

http://geotiff.maptools.org/listgeo.html

  • Down voted because this page is now a 404, and you should edit your post so that the link is current. – shawty May 19 '17 at 21:57
  • @shawty Really? This thread is more than 3 years old... You expect everyone to check their ancient posts for dead links every week? – aberenyi May 21 '17 at 18:33
  • Not every week, but casually here and there, I do with mine, and If I get a down vote I don't take the huff, I thank the person, put the link right, then ask them to remove the Down vote (Which they usually do...) – shawty May 21 '17 at 22:57
  • 2
    @shawty instead of being rude, I suggest you either. a) leave a comment that links are dead and downvote if they don't get fixed, or b) fix them yourself – user2856 May 22 '17 at 2:17
  • 2
    I think both of you made pretty clear that you have different views on this. I share @Luke's view on this, but I guess there are people out there who would see an edit as an offence (myself excluded). Let's move on. – aberenyi May 23 '17 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.