[Tile-serving] [osm2pgsql] Incorrect multi backend linestring geoms (#274)
Sarah Hoffmann
notifications at github.com
Fri Feb 6 22:05:17 UTC 2015
Thanks, that made it easy to find the bug in `way_helper::set`. As the size of the node_cache is only changed [here](https://github.com/openstreetmap/osm2pgsql/blob/master/geometry-processor.cpp#L79) when the ways is longer than the previously requested way, the return [here](https://github.com/openstreetmap/osm2pgsql/blob/master/geometry-processor.cpp#L83) is obviously too large if the way is smaller. Unfortunately, node_cache.size() is used in output-multi.cpp as well.
The correct fix would be to make `nodes_get_list` use std::vector and set the size correctly. Undecided right now what the second best fix is. Probably a second `resize()` just before the return using the result of `nodes_get_list`.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/274#issuecomment-73321340
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150206/f33a70a7/attachment.html>
More information about the Tile-serving
mailing list