Displaying 1 result from an estimated 1 matches for "lineobj".
Did you mean:
lineo
2016 Apr 28
0
Snowfall - Error in checkForRemoteErrors(val) with sfClusterApplyLB()
...y(rgdal)
sfLibrary(raster)
sfLibrary(sp)
sfLibrary(rgeos)
sfLibrary(snowfall)
system.time( sfClusterApplyLB(1:10, function(k) {
sfCat(paste("Iteration ", k), sep="\n")
if (......) {
} else {
if (class(ob1)=="SpatialCollections") {
ob2 <- ob1 at lineobj
} else if (class(ob1)=="SpatialLines") {
ob2 <- ob1
}
ob3 <- data.frame(length_m=sapply(1:length(ob2), function(l) gLength(ob2 [l, ])))
.....
}
.....
}
sfStop()
The problem is that the code returns the error message:
Error in checkForRemoteErrors(val...