Re: [gdal-dev] ogr2ogr: cartesian geographic coordinates problem

2011-10-12 Thread Luca Sigfrido Percich
Well, at least you can guess that the prime meridian is Greenwich and not Rome. Good luck! Sig Il giorno mer, 12/10/2011 alle 12.19 +0200, emmexx ha scritto: > Il 10/12/2011 12:10 PM, Luca Sigfrido Percich scrisse: > > Yes, in that case you need to store in a file the WKT implementation of > > t

Re: [gdal-dev] ogr2ogr: cartesian geographic coordinates problem

2011-10-12 Thread emmexx
Il 10/12/2011 12:10 PM, Luca Sigfrido Percich scrisse: > Yes, in that case you need to store in a file the WKT implementation of > the CS and add the -s_srs "file.prj" option. > > Before doing this, have you tried -s_srs EPSG:4806 ? I tried that to no avail. The transformed coordinates are wrong.

Re: [gdal-dev] ogr2ogr: cartesian geographic coordinates problem

2011-10-12 Thread Luca Sigfrido Percich
Yes, in that case you need to store in a file the WKT implementation of the CS and add the -s_srs "file.prj" option. Before doing this, have you tried -s_srs EPSG:4806 ? http://spatialreference.org/ref/epsg/4806/ It uses international 1924 and not Rome 1940 spheroid, though. Sig Il giorno mer

Re: [gdal-dev] ogr2ogr: cartesian geographic coordinates problem

2011-10-12 Thread emmexx
Il 10/11/2011 09:50 AM, Luca Sigfrido Percich scrisse: > Hi Max, > > have you tried > > ogr2ogr -t_srs EPSG:4326 -f "one of many formats" outputfile myshape.shp > > As ogrinfo recognizes the source shape CS (I guess it has a .prj file > associated with it), you should only transform (-t_srs) int

Re: [gdal-dev] ogr2ogr: cartesian geographic coordinates problem

2011-10-11 Thread Luca Sigfrido Percich
Hi Max, have you tried ogr2ogr -t_srs EPSG:4326 -f "one of many formats" outputfile myshape.shp As ogrinfo recognizes the source shape CS (I guess it has a .prj file associated with it), you should only transform (-t_srs) into the destination CS. All the best Sig > Il giorno lun, 10/10/20

[gdal-dev] ogr2ogr: cartesian geographic coordinates problem

2011-10-10 Thread emmexx
I'm new to this list, sorry if my question is not new or OT. I was given a shape file containing linestrings based on a CTR map (CTR is a "technical italian map"). The file uses Roma1940 and the coordinates are geographic. This is the start of the output of ogrinfo -al: Geometry: Line String Featu