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

Warning generated from proj4string<- #40

Open
MichaelChirico opened this issue Jun 25, 2023 · 0 comments
Open

Warning generated from proj4string<- #40

MichaelChirico opened this issue Jun 25, 2023 · 0 comments

Comments

@MichaelChirico
Copy link
Owner

══ Failed tests ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
── Error (test-gis-tools.R:120:3): gh_covering works ───────────────────────────
Error in `sp::`proj4string<-`(`*tmp*`, value = prj4)`: (converted from warning) A new CRS was assigned to an object with an existing CRS:
+proj=longlat +datum=WGS84 +no_defs
without reprojecting.
For reprojection, use function spTransform
Backtrace:
    ▆
 1. └─geohashTools::gh_covering(banjarmasin) at test-gis-tools.R:120:2
 2.   ├─sp::`proj4string<-`(`*tmp*`, value = prj4)
 3.   └─sp::`proj4string<-`(`*tmp*`, value = prj4)
── Error (test-gis-tools.R:164:3): gh_covering_sf works ────────────────────────
Error in `sp::`proj4string<-`(`*tmp*`, value = prj4)`: (converted from warning) A new CRS was assigned to an object with an existing CRS:
+proj=longlat +datum=WGS84 +no_defs
without reprojecting.
For reprojection, use function spTransform
Backtrace:
    ▆
 1. └─geohashTools::gh_covering(banjarmasin) at test-gis-tools.R:164:2
 2.   ├─sp::`proj4string<-`(`*tmp*`, value = prj4)
 3.   └─sp::`proj4string<-`(`*tmp*`, value = prj4)

#31 would solve this.

Once this is fixed, options(warn = 2L) should be set in testthat.R

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

1 participant