Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

ArcMap: Unknown Spatial Reference fix with GDAL/Python

$
0
0

I have a .tif file that I created with Python and when I open it in ArcMap it says it doesn’t have spatial reference information. Is there a way to set the spatial reference with GDAL if I have a .prj file? I have tried running this command through Python:

gdalwarp -t_srs ESRI::file.prj tmp.tif ouput.tif

Where -t_srs is the ‘target spatial reference set’, but it gives me the error: “Unable to compute a transformation between pixel/line and georeferenced coordinated for tmp.tif”

Is there an easy way to set the spatial reference of a .tif file with GDAL?


Viewing all articles
Browse latest Browse all 397

Latest Images

Trending Articles



Latest Images