Thursday 21 November 2019

Automated removal of dangles / loose ends in line with QGIS?


Here's what I want to do:



enter image description here


The original line is a dissolved osm extract of ways, which I want to simplify to one continous line without dangles / loose ends (red x's in picture).


I found the network generalization tool in GRASS, but possibly there is a QGIS way ro remove loose ends.


If there is no QGIS-only approach to do it, what would the parameterization in GRASS would have to look like to yield the desired result?



Answer



If a (somewhat manual) approach is fine for you, you could route from the start to the end point e.g. using the Road Graph plugin.


Otherwise, you'd have to find a way to automatically detect where the start and end points are.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...