You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
should the DouglasPeucker be used for the whole geometry instead of only pillar nodes? #1353
I feel it's better to apply DouglasPeucker to the whole edges.
Guess it could reduce more unnecessary points.
Interesting, I think you are right. DouglasPeucker should not remove the first and last point, so we would only simplify pillar nodes, but consider the whole geometry including tower nodes, which could save up to two coordinates per edge.
I found this problem when I found a very rare case: duplicated lat/lon of the first node and second node . (anything could be true for OSM, 🤷♂️ ) Then I am curious why the DouglasPeucker doesn't remove the second node.
Douglas Peucker can remove details from a road, yes, but this should be only minimal, also see the Wiki about DP. If you think our implementation of DP is erroneous, it would be great if you could provide a sample test case (in a different issue :) or in our forum).
Activity
boldtrn commentedon May 2, 2018
Interesting, I think you are right. DouglasPeucker should not remove the first and last point, so we would only simplify pillar nodes, but consider the whole geometry including tower nodes, which could save up to two coordinates per edge.
zhiqiangZHAO commentedon May 2, 2018
I found this problem when I found a very rare case: duplicated lat/lon of the first node and second node . (anything could be true for OSM, 🤷♂️ ) Then I am curious why the DouglasPeucker doesn't remove the second node.
zhiqiangZHAO commentedon May 2, 2018
another question about DouglasPeucker, if the road is a z shape line.
It seems DouglasPeucker will remove the z structure.
Might not be a concern for road networks.
boldtrn commentedon May 3, 2018
Douglas Peucker can remove details from a road, yes, but this should be only minimal, also see the Wiki about DP. If you think our implementation of DP is erroneous, it would be great if you could provide a sample test case (in a different issue :) or in our forum).