[PROJ] PROJ 9 & old syntax +init=

Alain Orsoni Alain.Orsoni at ign.fr
Thu Jun 1 07:27:23 PDT 2023


For me LAMB1 and UTM31RGF93 are both considered as being on Geoid in the new database.
So the altitude from input is just transferred to the output.

So I think the result from 9.2 version is correct in terms of Z management.

But it’s only from my understanding…

Alain



> Le 1 juin 2023 à 15:54, Nicolas Bellaiche <nicolas.bellaiche at ign.fr> a écrit :
> 
> Hi all,
> 
> 
> I am still puzzled by the difference between the old syntax +init= and the new syntax. I just rebuilt the last release 9.2.1 and tested with it to make sure it's not a bug already fixed.
> 
> 1) Example where the grid shift is not taken into account with the new syntax. (it's correct with +init=)
> 
> 1.a) NEW SYNTAX: z not correct (grid shift not used)
> 
>  echo 600000.00000000 300097.53400000 0.00000000 |  ./bin/cs2cs IGNF:LAMB1 +to IGNF:UTM31RGF93
> 452845.19        5583309.40 0.00
> 
> 1.b) OLD SYNTAX: z correct:
> 
> echo 600000.00000000 300097.53400000 0.00000000 | ./bin/cs2cs +init=IGNF:LAMB1 +to +init=IGNF:UTM31RGF93
> 452845.19        5583309.40 43.64
> 
> 
> 
> 2) Example where the old syntax gives a wrong result while the new syntax works:
> 
> 2.a) OLD SYNTAX from cartographic to geocentric coordinates / result is wrong
> 
> echo 652760.737 7033791.243 43.642 | PROJ_DEBUG=3 ./bin/cs2cs +init=IGNF:LAMB93 +to +init=IGNF:RGF93
> 4070355.05        166080.07 4891332.24
> 
> 
> 2.b) NEW SYNTAX from cartographic to geocentric coordinates / result is correct
> 
> echo 652760.737 7033791.243 43.642 | PROJ_DEBUG=3 ./bin/cs2cs IGNF:LAMB93 +to IGNF:RGF93 
> 4070327.25 166078.93 4891298.61
> 
> 
> 
> 
> _______________________________________________
> PROJ mailing list
> PROJ at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/proj

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20230601/6768c0af/attachment.htm>


More information about the PROJ mailing list