-
-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for PROJ 6.0.0 #5766
Comments
|
In the mean time a quick work around for anyone needing to use PROJ 6 or anyone who has recently built GDAL with PROJ 6 without realizing mapserver wasn't compatible, not saying that is what I did but just in case someone does. Add
THIS IS NOT A SOLUTION just a work around. |
|
This should really be targeted for 7.4. @rouault, any feel for how big a deal this is likely to be? |
I haven't looked in details, but not trivial. |
|
Thanks and ugh... I had this as a code sprint activity for 8.0, perhaps it's best left there. Will start reading up. |
|
Currently blocking integration of latest proj in Homebrew: Homebrew/homebrew-core#38215 |
|
@rouault is the preferred method to set a cflag -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1 or the define in mapproject.h as suggested by @bmulcahy? They're equivalent and the latter is trivial (no messing with cmake) so I was going to add that quickly before creating the 7.4 branch. Just making sure... |
this is fine to me, but I also see that mapwcs20.c directly includes <proj_api.h>. I guess that include should be replaced by mapproject.h (or it is possible that mapproject.h is indirectly included) |
|
mapproject.h is included in mapserver.h which is also included in mapwcs20.c so I think we're ok. It looks like mapwcs20.c is only using the pg_is_latlong() function/macro... |
|
What about PHP MapScript? It still uses projects.h in 7.4.0-beta1. |
Will have to address in beta2... |
|
@sebastic, I made a small change in PHP/MapScript with the workaround. Any chance you could test on your end? --Steve |
|
I guess you mean commit b4b680d? That won't suffice, because |
I'd suggest completely dropping php_proj.c . This has nothing to do mapserver itself. This is a PHP binding to PROJ old projects.h. There's no way to emulate completely with new API since this is really a raw bindng to projects.h function. And we could drop it since it doesn't seem to be used elsewhere in the PHP bindings.
From what I see, they use mapserver abstracted API and don't depend explicitly on PROJ headers |
No, MapServer 7.4.0-beta1 builds successfully with PROJ 6.0.0. |
|
Support for proj.h API has been added in master a few weeks ago per #5888 |
Mapserver still uses
proj_api.hwhich is deprecated in PROJ 6.0.0 and will be removed in PROJ 7.0.0 (scheduled for March 2020).When using
proj_api.hwith PROJ 6.0.0-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1needs to be added toCFLAGSto prevent a compiler error.Mapserver should be updated to (also) support the
proj.hAPI.Note that PHP MapScript still includes
projects.hwhich is no longer available in PROJ 6.0.0.The text was updated successfully, but these errors were encountered: