-
Notifications
You must be signed in to change notification settings - Fork 298
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
roadbump coming: Proj 5 release #545
Comments
The question you asked there is a good one; let me know when it makes sense to start testing with a release candidate. |
Now with a migration guide - post. My reply. |
Looks to me like a change of similar magnitude as from sp to sf. |
Lots of consequences - we are trapped by having to wait for gdal to upgrade to suit new proj as far as new releases are concerned. I've posted a more detailed question on the proj list for no-inverse projections. |
Just found a description. |
Actually, perhaps you could "reach out" (very modern) to them in relation to stars? If they follow through on spatio-temporal and epoch, stars might benefit from being involved at the beginning of st projection support ... just a thought. Otherwise they may well see everybody as simply rejecting change? A talk in Münster? |
Thanks, great idea! |
Could we help Kristian set up a valid and installed proj-config? I've found an installed {--prefix}/lib/pkgconfig/proj.pc file, but no further build of that to proj-config. Does anyone know how to create a stand-alone script?
work, but aren't obvious unless /usr/local/lib/pkgconfig is known. Can we work with this and a configure-arg for --with-path, falling back on the include and libs configure args if it fails? |
geos's geos-config is fairly straight forward and would be a good model. It
is just a shell script that is modified by the Makefile - see
https://github.com/OSGeo/geos/blob/master/tools/geos-config.in
…On Fri, Nov 17, 2017 at 7:21 AM Roger Bivand ***@***.***> wrote:
Could we help Kristian set up a valid and installed proj-config? I've
found an installed {--prefix}/lib/pkgconfig/proj.pc file, but no further
build of that to proj-config. Does anyone know how to create a stand-alone
script?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#545 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAQuBiFB--OfOQuxED7WZh8PbXZb7kBzks5s3XpYgaJpZM4QX929>
.
|
At PROJ.4 5.0.0 RC3 (didn't test before), there is a CMD check failure in sf:
Using rgdal, the error seems to come from:
Note that |
Aha, segmentize is in GDAL - what precision model is used there? And:
This, and the rgdal::spTransform() errors are unchanged, that is, they fail for PROJ.4 5.0.0RC3 and 4.9.3. My sf is:
|
Trying to run check in a container with 5.0.0RC3, and
I can't reproduce the plot error, but do see some differences (which may be due to lwgeom taking another code route), and an error in testthat.
|
Yes, I saw that too, and backed out my tidyverse to CRAN releases (unsure why). I was running reverse dep checks for rgdal, and as sf Suggests rgdal, it gets drawn in. I'm for that reason testing 1.6.0 from CRAN, not current master. |
When debugging I see numerous errors from gdal calling proj; are there some signs somewhere that gdal 2.2.3 should work with proj.4 5.0.0, or am I simply being naive here? |
As the 5.0.0 RCs only started appearing recently, my guess is that not much (yet). From the GDAL logs, almost all of the commits since 2.2.3 are issues in drivers that themselves link to PROJ.4; I don't see any mention of "5.0.0" at all in the log. You've also got me thinking that while I'm OK with trying to make some progress on the rgdal/PROJ.4 code, rgdal is still very vulnerable to driver code with its own relationship with PROJ.4. I just found a proj-4.9.3 binary on my desktop brought in by qt-mobility-location, which I can't recall installing. Transition to 5.0.0 looks like being fun ... |
See also an RC2 issue in PostGIS which looks like what I saw. The fix may be
and commented from PROJ.4 |
OK, maybe wait for RC4? Or test against the dev version? |
I've recompiled proj (master) and gdal (and lwgeom), but still see:
The spTransform error is also the same. |
As of RC6, unresolved issue with webmercator (which is a worse can of worms than coordinate order). See this thread, truncated at month shift (starts in Feb, but develops today - |
Latest at, reverting a |
Proj 5 has been released now. |
Oops! did CRAN spontaneously jump to 5.0.0 on linux & solaris? |
I see |
looks very familiar - it cropped up in st_is_valid() throwing error instead of returning NA #501. But the GEOS version doesn't agree ... no, it was my comment above from three weeks ago ... |
I didn't know these platforms would update so fast; in particular debian. The "sorting out" commit message above has been sorted out: even if sf links to proj 5, it will use the GDAL interface to project, and GDAL may as well (and did for me) still link to proj 4.9.x. The comparison was equality of rgdal and sf, but was different (interestingly: for epsg 3857 - I guess not one of the least used projections). Would be good if sf could report which proj version gdal links to. Yeah, I saw that error on the debian r-devel platforms; can't reproduce it (GEOS mismatch?) |
Homebrew has also updated to 5.0.0:
|
cool - thanks! Well, sf 0.6-1 is submitted now, let's see. |
The 5.0.0 proj route gives different 3857 coordinates in We need a cs2cs version. Something like:
but:
which is what we want!!
Issue OSGeo/PROJ#834 says that we need to drop |
Heads up to @tim-salabim and @timelyportfolio -- should we hack this, and have |
Not necessary I think. For all vector data |
Fix for |
For completeness, 3857 is only needed for rasters |
@rsbivand I think the place to fix proj errors is in proj, not in sf. 5.0.1 won't take long. |
OK. I'm just trying to keep on top of this, and to be able to test that 5.0.1 actually fixes this when it comes. I haven't built from the post-release master. |
From the PROJ.4 ML:
|
@Nowosad not a problem - rgdal only needed attention to projInfo("units"). rgdal as submitted to CRAN and current R-Forge thrunk (1.2-18) is OK with 5.0.0 (4.10.0 will not happen, they dropped the idea of continuing PROJ.4 4., have gone to PROJ.4 5.0.. See the proj ML. The API will change and will be easier to use. |
Thanks Roger! I didn't even expect an answer - It was just a reminder where to start looking for the answers. |
Markus Metz has started rebasing the GRASS trunk https://lists.osgeo.org/pipermail/grass-user/2018-March/078008.html on the new PROJ API - plenty of insight as for example here: |
Looks useful!! |
And from Even Rouault about GDAL: https://lists.osgeo.org/pipermail/gdal-dev/2018-March/048278.html I've just committed in trunk initial support for proj.5 API per: You have to use the to-be-released proj 5.0.1 / proj master to get all |
Today on GRASS: Now (last related commit is trunk r72522) it's finished. I have introduced GPJ_init_transform() (new, initializes coordinate transformation) The old GRASS API is still there but is no longer used by core modules. Only few ifdefs in lib/proj are needed for different PROJ versions. Modules As soon as PROJ 5.0.1 is out, I would like to drop support for PROJ 5.0.0 Markus M |
The web-mercator issue is fixed in release 5.0.1. The work-around in rgdal's CRS handling will remain in case anyone has 5.0.0 installed. |
Thread here about issues probably with GDAL drivers linking to stale PROJ shared objects. |
It might make sense to first wait for GDAL to catch up with PROJ 5.0.1; they secured the funding it seems: https://gdalbarn.com/ |
Yes, I agree. |
rgdal from R-Forge and current sf master seem OK with 5.1.0RC2; attaching check log for sf: |
Thanks for checking! |
http://even.rouault.free.fr/proj_cpp_api/rfc-2.html# is the first cut at explaining the barn-raising product. |
This is crucial: http://lists.maptools.org/pipermail/proj/2018-November/008505.html - axis order. See also https://trac.osgeo.org/osgeo/ticket/2218 for mailing list issues (may leave the maptools server). |
See GDAL release proposal: https://lists.osgeo.org/pipermail/gdal-dev/2018-November/049381.html GDAL 2.4.0 soon, GDAL 2.5.0 April/May 2019 with breaking changes. |
Announced here; I already asked for a version number change in the github master to permit downstream conditioning. It looks as though proj-config will be available, but we'd need to test for it.
The text was updated successfully, but these errors were encountered: