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

fixed segment_center bug #64

Closed vermeulendivan closed 3 years ago

Samweli commented 3 years ago

@vermeulendivan can you explain about the bug that these changes are fixing.

vermeulendivan commented 3 years ago

In the create_new_feature method, the section/loop which creates the segment_center features incorrectly used the self_intersection variable. The last self_intersection point were always used, and if there where no self_intersections the plugin broke because the self_intersection variable were not declared. The segment center feature now correctly uses the segment_center variable to create the features.