Feature request #8043
Avoid duplicate nodes from "Extract Nodes"
|Pull Request or Patch supplied:||No||Resolution:||wontfix|
|Easy fix?:||No||Copied to github as #:||16885|
When extracting nodes for a polygon it appears that "Vector", "Geometry Tools", "Extract Nodes" outputs the same point twice as both a starting point and an ending point for the set of lines constructing the polygon. Perhaps this is just to follow the OGC Simple Features Specification?
But the practical use of this rather random duplicate point is hard for me to see (except perhaps for some error testing).
So I suggest to either simply not output the last and duplicate point or to make the user able to select whether he wants it or not.
#2 Updated by Anita Graser about 4 years ago
In the expressions we now have nodes_to_points which allows the user to specify the desired behavior:
geometry: geometry object
ignore_closing_nodes: optional argument specifying whether to include duplicate nodes which close lines or polygons rings. Defaults to false, set to true to avoid including these duplicate nodes in the output collection.