4

I have rendered a TIFF file, which is on the Mars2000, simple cyllindrical projection format. I want to upload the file to MapBox, and thus need a GeoTiff file.

How can I use GDAL, or similar, to convert the TIFF file to a GeoTIFF?

The image is on the exact same format and resolution as Mars MGS MOLA, as this was the base image for the render, which looks like this: Mars Render

I used GDAL with the command gdal_translate -of GTiff -a_srs .\format.wkt input.tif output.tif (which worked without errors) however when I upload to MapBox I get the following error Error creating Mapnik Datasource: could not read georeferencing , so I suspect the format is still corrupt somehow.

8
  • 1
    what is the disk file size of the TIFF, have you tried using this online converter? mygeodata.cloud/converter/img-to-geotiff Commented Feb 23, 2022 at 15:41
  • @Yogi It's 4GB, so that might be an option. If I understood their pricing correctly I would have to purchase a premium plan though.
    – Rudi
    Commented Feb 23, 2022 at 15:47
  • It's free for the first few conversions though. But not sure if the browser limit will allow you to get it uploaded. Give it a try. Commented Feb 23, 2022 at 15:57
  • 1
    oops! then might have to see other options. There are other ways around it besides making it too expensive. Do you have any GIS desktop apps? gis.stackexchange.com/questions/87642/… stackoverflow.com/questions/10956818/… Commented Feb 23, 2022 at 16:04
  • 1
    Instead of adding the solution to your question body, it would be more useful to create an an answer and accept it as correct.
    – Matt
    Commented Feb 25, 2022 at 9:48

1 Answer 1

2

The solution was to do an inspection of the original TIFF (using gdalinfo) to figure out the corner coordinates of the projection, and copying the projection format to a file named format.wkt. The correct metadata was then assigned using gdal_translate -of GTiff -a_srs .\format.wkt -a_ullr -10669675.197 5334837.599 10669675.197 -5334837.599 input.tif output.tif

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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