6

Which of these is the best approach to define (AKA. set) a projection for a tiff?

1) gdal_translate -a_srs EPSG:32182 in.tif out.tif

2) gdalwarp -s_srs EPSG:32182 -t_srs EPSG:32182 in.tif out.tif

  • geotifcp instead? – mkennedy May 6 '15 at 19:04
  • This looks like a good utility but I wanted to stick with gdal. – Rick May 7 '15 at 11:05
11

if you want to set the projection of a file with gdal tools, you should use gdal_edit.py -a_srs

Both gdalwarp and gdal_translate will create a new file.

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.