[Proj] Installation or usage problems
Stéphane SARAGAGLIA
stephane.saragaglia at robosoft.fr
Tue Jan 26 05:24:48 EST 2010
Hello everyone,
First of all, thank you for the Proj.4 lib which is useful in the
painful world of Cartographic Projections.
But I am encountering some troubles using nad files.
- I have downloaded sources
(http://download.osgeo.org/proj/proj-4.7.0.tar.gz) and datum shift grids
(http://download.osgeo.org/proj/proj-datumgrid-1.5.zip).
- I have compiled cs2cs with VC6 for Windows.
- I have installed binaries in PATH and set PROJ_LIB to point to nad files.
I want to convert WGS84 coords to French Lambert3 ones.
When I use the following command, all is fine :
$ ./cs2cs.exe +init=epsg:4326 +to +proj=lcc +lat_1=44.10000000000001
+lat_0=44.10000000000001 +lon_0=0 +k_0=0.999877499 +x_0=600000
+y_0=200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0
+pm=paris +units=m +no_defs
pj_open_lib(epsg): call fopen(C:\Program Files\Pges\proj\nad\epsg) -
succeeded
5d47'17.2"E 45d12'37.7"N 270
871086.51 329076.60 228.46
But when I use the following one, I obtain wrongs results :
$ ./cs2cs.exe +init=epsg:4326 +to +init=epsg:27563
pj_open_lib(epsg): call fopen(C:\Program Files\Pges\proj\nad\epsg) -
succeeded
pj_open_lib(epsg): call fopen(C:\Program Files\Pges\proj\nad\epsg) -
succeeded
5d47'17.2"E 45d12'37.7"N 270
687492.97 323984.26 270.00
The parameters used in the first command line are taken from the epsg
file used in the second one. I guess I am missing something. Perhaps a
wrong install or a wrong usage.
Could you give me some advice ?
Regards,
--
-----------------------------------------------------------------------
Stéphane SARAGAGLIA
http://www.robosoft.com
ROBOSOFT PGES – 4 bis Chemin des Prés – F-38240 MEYLAN
Tel : + 33 (0)4 76 18 21 50 – Fax : + 33 (0)4 76 18 90 42
----------------------------------------------------------------------
More information about the Proj
mailing list