[Gdal-dev] help on ogr2ogr to assign Spatial reference system
Nimalika
nimalika.f at sliit.lk
Mon Jun 11 03:28:23 EDT 2007
Dear M.L,
Thanks for the early response.
I tried with the quotes but still fails and this time no error message.
>ogr2ogr -f "ESRI Shapefile" -a_srs "+proj=tmerc +ellps=ev
rst30 +lat_0=7.00048 +lon_0=80.77171 +k=0.9999238418 +x-0=2000000
+y_0=200000 +u
nits=m" D:\Reserch\Kaduwela\Kaduwela\gn_kaduwela.shp
Usage: ogr2ogr [--help-general] [-skipfailures] [-append] [-update]
[-select field_list] [-where restricted_where]
.....
anny help is appriciated much.
regards
nimalika
----- Original Message -----
From: "Mateusz Loskot" <mateusz at loskot.net>
To: "Nimalika" <nimalika.f at sliit.lk>
Cc: <gdal-dev at lists.maptools.org>
Sent: Monday, June 11, 2007 11:50 AM
Subject: Re: [Gdal-dev] help on ogr2ogr to assign Spatial reference system
> 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