mbtyers / riverdist

River Network Distance Computation and Applications
23 stars 1 forks source link

riverdirection can't deal with mouths in the middle of network #8

Open jsta opened 6 years ago

jsta commented 6 years ago

Imagine a scenario with a messy river network where the "mouth" is not a terminal segment/node in the network:

data(Gulk)
Gulk1 <- setmouth(6, 1, Gulk)
plot(Gulk1)
riverdirection(startseg=6, endseg=1, startvert=1, endvert=1, rivers=Gulk1)
riverdirection(startseg=6, endseg=8, startvert=1, endvert=1, rivers=Gulk1)

Here we have riverdirection saying that both segment 1 and 8 are "up" stream of segment 6.