Open ckluss opened 3 years ago
Thank you for reporting this! I think I know where this error is coming from...I will try to track it down over the weekend!
Out of curiosity, could you tell me what the output of library(sf)
looks like in a fresh session? (I'm looking for your PROJ, GEOS, and GDAL versions)
Thank you very much, it is
Linking to GEOS 3.9.0, GDAL 3.2.1, PROJ 7.2.1
Kind regards Christof
Has this issue been resolved. I am getting the same error.
> ggspatial::load_longlake_data()
>
> ggplot2::ggplot() +
+ ggspatial::annotation_map_tile(
+ zoom = 13, cachedir = system.file("rosm.cache", package = "ggspatial")) +
+ ggplot2::geom_sf(data = longlake_waterdf, fill = NA, col = "grey50")
Zoom: 13
Error in sp::CRS(paste0("+init=epsg:", epsg)) : NA
> library(sf)
Linking to GEOS 3.9.1, GDAL 3.2.1, PROJ 7.2.1; sf_use_s2() is TRUE
reinstallation of rdgal with install.packages("rgdal", repos="http://R-Forge.R-project.org")
and setting rgdal::set_proj_search_paths("C:/Users/Christof/Documents/R/win-library/4.1/rgdal/proj")
as described here https://github.com/jhollist/elevatr/issues/48#issuecomment-1059802332 had fixed problem. with rgdal::get_proj_search_paths()
you'll see the current path.
I have the same problem, updated all relevant packages and changed the search path, and it still produces the same error
> df1 %>%
+ st_as_sf(coords = c("gtfs_stop__lon","gtfs_stop__lat"),crs = 4326) %>%
+ ggplot(aes(color = order)) +
+ annotation_map_tile(zoom = 14)+
+ geom_sf(size = 3)
Error in sp::CRS(paste0("+init=epsg:", intx)) : NA
Hi all,
when I try to use
annotation_map_tile
I get the errorError in sp::CRS(paste0("+init=epsg:", epsg)) : NA
. Do you have an idea what the problem could be?Thx Christof