You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/asf_meta/distortions.c relies on parts of the PROJ.4 API that are considered internal, and so this code is fragile, subject to breakage when PROJ.4 changes.
The projects.h header is private, and shouldn't be included.
The function map_distortions() at one point attempts to directly access the members of a projPJ structure. This is considered bad practice by the PROJ.4 team, since the members are internal and subject to change.
Attempting to fix problem 1 causes compilation errors related to problem 2.
The text was updated successfully, but these errors were encountered:
Did not see any other way to get access to the pre-calculated map distortions. If you find any other way to get those, please let me know and I will revise the code.
It looks like the proper way to set the internals of a projPJ type is to do it with the string passed to pj_init_plus(). See http://trac.osgeo.org/proj/wiki/GenParms.
That handles setting the internals. I'm still looking at how to access them.
There is a reason why I coded it up that way in the first place. Really
could not find any other way of doing it.
I would not worrying too much about somebody changing proj4. If you just
look at the way string are used to pass along parameters, ... . Some more
people have contemplated ripping all that stuff out of there and replace it
with something proper. Yet, nobody really dared to touch it. As Kirk would
say "Don't change code that is working perfectly fine."
Best regards,
Rudi
Rudi Gens
Alaska Satellite Facility, Geophysical Institute, University of Alaska
Fairbanks
903 Koyukuk Dr., P.O. Box 757320, Fairbanks, AK 99775-7320, USA
Phone: 1-907-4747621 Fax: 1-907-4746441
Email: [email protected] URL: http://www.gi.alaska.edu/~rgens
It looks like the proper way to set the internals of a projPJ type is to
do it with the string passed to pj_init_plus(). See http://trac.osgeo.org/proj/wiki/GenParms.
That handles setting the internals. I'm still looking at how to access
them.
—
Reply to this email directly or view it on GitHub #128 (comment)
.
src/asf_meta/distortions.c relies on parts of the PROJ.4 API that are considered internal, and so this code is fragile, subject to breakage when PROJ.4 changes.
Attempting to fix problem 1 causes compilation errors related to problem 2.
The text was updated successfully, but these errors were encountered: