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 wells #12

Closed timlinux closed 10 years ago

timlinux commented 10 years ago

Problem

Given a line layer, identify by selection all wells (points with no upstream nodes)

Proposed solution

The implementation should take the following steps:

IF upstream_node_count == 0 AND downstream_node_count > 0
THEN
    well = True
ENDIF

The logic here being that if there is no upstream node and there is more than zero downstream node, so this node must be the origin of the water supply for this river segment.

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

id upstream_node_count downstream_node_count well
1 0 1 1
2 2 3 0