Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 3
    Not sure I understand correctly. If I create a input.png and associated input.pgw, then gdal_translate -of Gtiff input.png output.tif generates a readable geotiff for me. I also tried taking a nongeotiff tiff, but where I had an associated pgw file, and I converted by gdal_translate to png (so it would pick up the orphan pgw) and then translate back to tiff, which was a geotiff based on the pgw file. Can you tell us more explicitly what format the input image and input worldfile are in? Commented May 10, 2019 at 18:16
  • Profile=baseline especially does not create GeoTIFF but a plain tif without internally stored georeferencing info. Take it off as well as the then unnecessary -co tfw=yes and your latter command should be OK. Commented May 10, 2019 at 20:34
  • Even without "profile=baseline", the file which was created, is not useable as a geotiff Commented May 16, 2019 at 9:37
  • Setting -a_srs was what did the trick for me. With this my GeoTIFF was useable for further processing. Commented Mar 23, 2020 at 10:37