mdsumner / ozmaps

Australian maps
https://mdsumner.github.io/ozmaps/
17 stars 2 forks source link

ozmaps() creates messages #13

Open edzer opened 3 years ago

edzer commented 3 years ago

Hi Michael, sf 1.0-2 now generates a message when it finds an old-style crs object, e.g.

> o = ozmap()
old-style crs object detected; please recreate object with a recent sf::st_crs()
> str(attr(o$geometry, "crs"))
List of 2
 $ epsg       : int 4283
 $ proj4string: chr "+proj=longlat +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +no_defs"
 - attr(*, "class")= chr "crs"

this generates errors on CRAN, because ozmaps tests for this not to happen. sf 1.0-2 has been submitted to CRAN. Future sf version will raise a warning, then an error.

mdsumner commented 3 years ago

thanks Edzer, will do