> a<-SOmap_auto(c(0, 50), c(-70, -50))
Warning message:
In rgdal::rawTransform(projfrom, projto, nrow(xy), xy[, 1], xy[, :
Using PROJ not WKT2 strings
> x<-SOauto_crop(SOmap_data$fronts_orsi, a)
Warning message:
In spTransform(xSP, CRSobj, ...) :
NULL source CRS comment, falling back to PROJ string
> x
[1] "Error in h(simpleError(msg, call)) : \n error in evaluating the argument 'x' in selecting a method for function 'addAttrToGeom': list item(s) not of class sfg\n"
attr(,"class")
[1] "try-error"
attr(,"condition")
<simpleError in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'addAttrToGeom': list item(s) not of class sfg>
Related: would it make sense to remove the try(..., silent = TRUE) from the SOauto_crop code? In this case, at least, this made it harder to figure out which step had failed.
Suspect is due to sf changes, don't know if it's related to https://github.com/AustralianAntarcticDivision/SOmap/issues/82.
Related: would it make sense to remove the
try(..., silent = TRUE)
from theSOauto_crop
code? In this case, at least, this made it harder to figure out which step had failed.