ccamlr/CCAMLRGIS

ASDs in vignette longlat but not longlat

Closed this issue · 1 comments

The root problem is the use of GEOJSON to transport projected coordinates:

library(CCAMLRGIS)
ASDs=load_ASDs()
proj4string(ASDs)
## [1] "+proj=longlat +datum=WGS84 +no_defs"
bbox(ASDs)
##       min     max
## x -3348556 4815055
## y -3329339 4371127

and leads to failure in vignette line 194.

> l=rgeos::polygonsLabel(S486,labels='48.6',col='red')
Error in `proj4string<-`(`*tmp*`, value = new("CRS", projargs = "+proj=longlat +datum=WGS84 +no_defs")) : 
  Geographical CRS given to non-conformant data: -1158424.94741  2117002.94983  4065772.47390

Will be included in version 3.0.1