search for: spatialcollect

Displaying 1 result from an estimated 1 matches for "spatialcollect".

2016 Apr 28
0
Snowfall - Error in checkForRemoteErrors(val) with sfClusterApplyLB()
..."ErrorMessage.txt") sfExportAll() sfLibrary(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 er...