kartoza / stream_feature_extractor

A QGIS plugin to extract stream features (wells, sinks, confluences etc.) from a stream network
GNU General Public License v2.0
6 stars 9 forks source link

We need to be able to identify confluences #15

Closed timlinux closed 10 years ago

timlinux commented 10 years ago

Problem

Given a line layer, identify by selection all confluences (points with more than one upstream nodes and more than zero downstream nodes)

Proposed solution

The implementation should take the following steps:

IF upstream_node_count > 1 AND downstream_node_count > 0
THEN
    confluence = True
ENDIF

The logic here being that if there is more than one upstream node and there are more than zero downstream nodes, so this node must be a meeting point of the rivers

Example nodes attribute table (excludes other extracted feature types):

id upstream_node_count downstream_node_count confluence
1 3 0 0
2 2 3 1