[PROJ] About PROJ.6: C source sample
Kristian Evers
kreve at sdfe.dk
Tue Apr 2 01:14:16 PDT 2019
Hi Sandro,
I think what is really needed is a general update of the example
code to better use PROJ 6 capabilities. I've added a ticket [0] about it
and at some point I will get around to fixing it.
Thanks for highlighting the issue. Generally speaking we are a lot
behind with the docs. Even has been busy writing the code and the
rest of us are still trying to keep up with the all the changes. It is
not ideal, but it is what it is.
/Kristian
[0] https://github.com/OSGeo/proj.4/issues/1403
-----Oprindelig meddelelse-----
Fra: PROJ <proj-bounces at lists.osgeo.org> På vegne af a.furieri at lqt.it
Sendt: 2. april 2019 09:46
Til: proj at lists.osgeo.org
Emne: [PROJ] About PROJ.6: C source sample
Hi all,
In the last week I was working on integrating PROJ.6 support
in SpatiaLite, and I noticed few glitches probably worth
to be discussed.
For the sake of clarity I'll send a distinct post for
each singe glitch.
-------
First of all I noticed something disturbing in the
C source sample at Chapter 10.1 "Quick Start".
printf ("longitude: %g, latitude: %g\n", b.lp.lam, b.lp.phi);
this is someway misleading, because it prints longitudes
and latitudes expressed in Radians; I suppose that the
following patch printing angular coords in Degrees would
be more appropriate:
printf ("longitude: %g, latitude: %g\n",
proj_todeg(b.lp.lam), proj_todeg(b.lp.phi));
it's not really a big issue, but it may be disturbing,
unclear or puzzling for developers having their first
approach with PROJ.6 (as it happened to me).
bye Sandro
_______________________________________________
PROJ mailing list
PROJ at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/proj
More information about the PROJ
mailing list