Skip to content
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

TODO for CRS changes #68

Open
6 tasks done
rsbivand opened this issue Jan 17, 2020 · 20 comments
Open
6 tasks done

TODO for CRS changes #68

rsbivand opened this issue Jan 17, 2020 · 20 comments

Comments

@rsbivand
Copy link
Contributor

rsbivand commented Jan 17, 2020

to roll out new sp and rgdal, the next things have to be done

  • compare reverse dependencies against sp & rgdal released RSB GDAL 2.4.4 PROJ 5.2.0
  • compare reverse dependencies against sp & rgdal devel RSB GDAL 3.0.3/PROJ 6.3.0 (st_630_303_200117.zip)
  • ?check against PROJ 7 release candidates
  • submit to CRAN
  • contribute to sf r-spatial blog TODO for CRS changes r-spatial/sf#1244
  • inform twitter
@edzer
Copy link
Owner

edzer commented Jan 17, 2020

OK, did you make a PR against sp, or shall I do that? Do they have to be rolled out in a particular order?

@rsbivand
Copy link
Contributor Author

No, I think you picked up my commits from my fork master and applied them to the master by 74a8780, didn't you?

@edzer
Copy link
Owner

edzer commented Jan 17, 2020

Ah, thanks, yes, I forgot.

@rsbivand
Copy link
Contributor Author

rsbivand commented Jan 17, 2020

And 3e0497b before that (for the record).

@rsbivand
Copy link
Contributor Author

Can we try to release sp with my fork commits of 21 January, which should have benign effects on rgdal and raster and their revdeps? Then it will be easier to move to releasing GDAL3-ready rgdal. On PROJ6/GDAL3, I'm seeing about 50 new breakages across the whole revdep tree of ~ 900 packages, mostly messing with sp::CRS/raster::crs objects internally and not using accessor functions. All warned, many have reported back that problem fixed but not released to CRAN.

@edzer
Copy link
Owner

edzer commented Feb 20, 2020

Yes, that means releasing from my master current branch, right?

@rsbivand
Copy link
Contributor Author

Yes, please check my PRs. Maybe an RC of sp, so that you or I can check rgdal rev. 938.

@edzer
Copy link
Owner

edzer commented Feb 20, 2020

Thanks; merged, and I bumped the version to 1.4-0.

@edzer
Copy link
Owner

edzer commented Feb 20, 2020

While checking, I see

* checking dependencies in R code ... NOTE
Missing or unexported objects:
  ‘rgdal::checkCRSArgs_ng’ ‘rgdal::new_proj_and_gdal’

is some version of rgdal required that is not yet on CRAN? (How) can we suppress this NOTE?

@rsbivand
Copy link
Contributor Author

rsbivand commented Feb 20, 2020

This is the circular dependency problem, sp needing unreleased rgdal needs to be on CRAN first. I think we saw this earlier (maybe an sf issue)? I think we agreed to include this as a note to CRAN-team that the NOTE would be resolved when rgdal was released?

@rsbivand
Copy link
Contributor Author

I'm still seeing 1.3-4 after git fetch upstream - have you pushed?

@edzer
Copy link
Owner

edzer commented Feb 20, 2020

Sorry, now I have.

@edzer
Copy link
Owner

edzer commented Feb 20, 2020

While checking on the gdal 3.0.4/proj 7.0.0RC1/geos 3.8.0 image I see lots of these warning messages:

< 8: In showSRID(uprojargs, format = "PROJ", multiline = "NO") :
<   Discarded datum Unknown based on Bessel 1841 ellipsoid in CRS definition

with

> sessionInfo()
R version 3.6.2 (2019-12-12)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.4 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

locale:
[1] C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rgdal_1.5-5 sp_1.3-2   

loaded via a namespace (and not attached):
[1] compiler_3.6.2  grid_3.6.2      lattice_0.20-38

@rsbivand
Copy link
Contributor Author

rsbivand commented Feb 20, 2020

This is as expected, they come from inside rgdal, where there are also tools to moderate the numbers of warnings. In rgdal, I have set_thin_PROJ6_warnings(TRUE) at the beginning of examples{} sections in help files where needed, but not in tests/*.R. Without the warnings, I can't check back for possible impacts in .Rcheck/-EX.Rout files, but maybe that doesn't matter.

@rsbivand
Copy link
Contributor Author

Is sp_1.3-2 attached reliable??

@rsbivand
Copy link
Contributor Author

rsbivand commented Feb 20, 2020

I see "Discarded" in tests/fail1.Rout and tests/pass1.Rout, as well as man pages for: CRS-class, degAxis, gridlines, loadMeuse, meuse, meuse.grid, recenter-methods, spChFIDs-methods, spDistsN1, spplot. None I can see in vignettes. To turn on thinning, would need to test for rgdal, its version, and whether GDAL & PROJ are NG.

@edzer
Copy link
Owner

edzer commented Feb 20, 2020

Sorry, this was with sp 1.4-0 (posted the wrong sessionInfo()).

@rsbivand
Copy link
Contributor Author

1.4-0 1 NOTE with devel (excess time when run with --run-donttest --run-dontrun), so OK otherwise, and rgdal 1.5-5.

@edzer
Copy link
Owner

edzer commented Feb 20, 2020

OK, then I will submit with the message:

  • expect a NOTE from rgdal, that will go away with new rgdal which needs this sp version
  • expect several packages that will break, but all have been informed timely.

@edzer
Copy link
Owner

edzer commented Feb 20, 2020

Submitted.

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Jul 23, 2020
Upstream changes:
Changes in version 1.4-1 (2020-xx-yy)

    warn on NULL projargs in CRS(); edzer/sp#74

Changes in version 1.4-0 (2020-02-21)

    prepare for new (>= 1.5.1) rgdal, which creates and listens to a comments() field of a CRS object carrying a WKT representation of a CRS rather than the proj4string; @rsb, edzer/sp#67 and edzer/sp#69 ; for more info see e.g. edzer/sp#68 and r-spatial/discuss#28

Changes in version 1.3-2 (2019-11-07)

    fix length > 1 in coercion to logical error; #54, #60

    add is.na method for CRS objects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants