-
Notifications
You must be signed in to change notification settings - Fork 2
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
vulnerability to PROJ6/GDAL3 issues #30
Comments
Thank you for your notice @rsbivand. I've installed PROJ7/GDAL3 locally and ensured my
|
If you prefer to use Windows, see https://stat.ethz.ch/pipermail/r-sig-geo/2020-April/028063.html for current sp and rgdal binaries. Otherwise on Linux and source installs, use |
Thanks @rsbivand. Install of I don't see a "BugReports" in the Description for rgdal so we could discuss it here, or let me know where you'd prefer me to post it.
...
|
This looks like the standard case of more than one libproj.so present on your system. The package is built using the library pointed at by pkg-config proj, but this is not the one found on load. Maybe you only have one libproj.so but you didn't run ldconfig, or maybe another libproj.so is earlier in the load path than the one used for building. Remove the other ones to disambiguate. There was no need to update PROJ, the same error would show with 6.3, I think. Also remember to re-install GDAL using the PROJ you just updated. |
Thanks you are right. I didn't see the warnings originally with PROJ 6.3 and wasn't sure since above you mention different versions in the title (PROJ6) and your original comment (PROJ7). I fixed the install and I'm seeing the warnings with GDAL3, PROJ6.3 and released sp, devel rgdal. Thanks @rsbivand, I will take and a look to address these warnings. |
@rsbivand, it turns out these warnings are coming from one of I'm working on updating the CRS usage to eg. |
@robitalec You need a reproducible example, you have not said that you have tried to resolve this yourself. You are most likely making unreasonable assumptions about another package. I see:
Running just those lines of your testthat file shows that you are expecting silence but getting warnings from rgdal:
Do read https://rgdal.r-forge.r-project.org/articles/CRS_projections_transformations.html and its links, and realise that expecting silence in testthat is imposing your wishes on the diligent providers of packages you use, who are warning you that your workflow is vulnerable to changes in the representation of coordinate reference systems. The problem is your use of testthat, not the correct behaviour of upstream packages. It would be much worse if we let you assume that your output should be the same but is not, by not warning you of significant upstream changes. The warninga are coming from sp and rgdal. |
This comment has been minimized.
This comment has been minimized.
If you read the start-up messages given by rgdal, you will see a mechanism that may be used. It does not yet remove warnings generated by sp; I expect to use the same option settinng for sp. However, I advise most strongly against suppressing informative warnings. Say someone is using your package in production, and is in scripts messing about with CRS objects. If you have suppressed the warnings, they will not be alerted to potentially major positional degradation in their workflow. From sp 1.5 and rgdal 1.6, I'll reverse the warning defaults, but not before. If testthat is playing up ( |
This comment has been minimized.
This comment has been minimized.
So please suggest patches for rgdal and PRs for sp. As you maybe also know, EPSG:4326 by definition expects coordinates to be Northing:Easting, not regular GIS order, so it certainly is not a guarantee of clarity. The message we must get out is that all users should verify their workflows irrespective of false positive warnings. Think of the extra cost of not only checking whether a Datum present in the internal representation is dropped by GDAL's exportToProj4(), but also checking that it was WGS84. Maybe at your relevant scales, 125m doesn't matter, in which case define only the ellipsoid? I don't know all of the accuracy/scale constraints of users of your package. Sonce I do not know, I prefer to alert, to shift the responsibility from me to the end user who is more likely to know. |
@MartinBeal - might be best to move the discussion of your package's specific CRS/PROJ/GDAL/etc challenges to an issue there. Hiding those comments from this thread. @rsbivand - I did investigate as mentioned here but you're right I should've posted the reproducible example. I had other pressing deadlines come up the past bit, but will have a PR addressing the test and silencing issues. Thank you. |
[@robitalec]: this comment has been removed because it does not respect spatsoc's code of conduct. It is unprofessional and disrespectful to criticize other's priorities and especially negligent of other's life circumstances, which are always different than our own. |
For other's reference in case, I separated warnings, messages and results in tests using |
I further kindly suggest that you review your use of your code of conduct. Maybe chasing many unresponsive maintainers makes me impatient, but running ~900 reverse dependency checks several times weekly and handling their results by posting issues and emailing does, I feel, justify abruptness for example when a candidate resolution has been proposed and when a package has been archived unnecessarily. |
No Roger, we remain resolute in the use of our code of conduct. There is no place, let alone excuse, for your disrespectful remarks or behaviour like them. We expect a higher standard of respect between the authors, users and contributors of this package than you have shown in this thread. If you have any other code-related comments, please open a new issue. |
sp and rgdal are changing how they handle CRS. See i.e. https://www.r-spatial.org/r/2020/03/17/wkt.html. I see:
when testing with released sp and devel rgdal on PROJ7/GDAL3.
The text was updated successfully, but these errors were encountered: