New answers tagged

1

Looking at your model it appears you have accepted default naming. I'm guessing that one viewshed that is created is always the viewshed for the very last row in your input table? I guessing that the model runs for a long time but creates a single output? The reason this is happening is that you are not changing the name of the output of the Viewshed tool, ...


1

You just need to loop over the combinations you need. > combn(1:length(Sl),2) [,1] [,2] [,3] [1,] 1 1 2 [2,] 2 3 3 that gets you (in columns) the line indexes. So then do: MyLines = apply(combn(1:length(Sl),2),2, function(x){ gIntersection(Sl[x[1]], Sl[x[2]]) }) Then MyLines[[1]] is the ...



Top 50 recent answers are included