[Gdal-dev] help on ogr2ogr to assign Spatial reference system
Nimalika
nimalika.f at sliit.lk
Mon Jun 11 02:21:12 EDT 2007
Dear all,
I am working with set of shape files and some are missing coordinate system references.I need to assign coordinate system to them and trying to use ogr2ogr to assign coordinate system to them with -a_srs .
I tried to use the definitions in the .proj file which is attached to shape files with the reference system to add the same to other shape files but not sucessful.I am not quite sure how to give the parameters to -a_srs
The .proj file content is as follows.
PROJCS["SL_grid_99",
GEOGCS["GCS_Kandawala",
DATUM["D_Kandawala",
SPHEROID["Everest_1830",6377276.345,300.8017]],
PRIMEM["Greenwich",0],
UNIT["Degree",0.017453292519943295]],
PROJECTION["Transverse_Mercator"],
PARAMETER["False_Easting",200000.000],
PARAMETER["False_Northing",200000.00],
PARAMETER["Central_Meridian",80.77171],
PARAMETER["Scale_Factor",0.9999238418],
PARAMETER["Latitude_Of_Origin",7.00048],
UNIT["Meter",1]
I used the folowing and got the error message
ogr2ogr -f "ESRI Shapefile" -a_srs +proj=tmerc +ellps=evr
st30 +lat_0=7.00048 +lon_o=80.77171 +k=0.9999238418 +x-0=2000000 +y_0=200000 +un
its=m D:\Reserch\Kaduwela\Kaduwela\gn_kaduwela.shp
FAILURE:
Unable to open datasource `+lat_0=7.00048' with the following drivers.
> ESRI Shape file .....
It seems like the way in which I gave the parameters are not correct .
Any help in this regard is highly appriciated.
Thanking you
nimalika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070611/abb7fd94/attachment.html
More information about the Gdal-dev
mailing list