[Gdal-dev] help on ogr2ogr to assign Spatial reference system

Mateusz Loskot mateusz at loskot.net
Mon Jun 11 02:20:30 EDT 2007


Nimalika wrote:
> It seems like the way in which I gave the parameters are not correct .
> Any help in this regard is highly appriciated. 

You need to wrap definition passed to *_srs options with quotes,
if the definition you're passing includes spaces:

-a_srs "+proj=tmerc +ellps=evrst30 +lat_0=7.00048 +lon_o=80.77171
+k=0.9999238418 +x-0=2000000 +y_0=200000 +units=m"

but if you pass ie. EPSG code, then you don't need to wrap it with quotes:

-a_srs EPSG:4326

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the Gdal-dev mailing list