[Tile-serving] [osm2pgsql] Set polygon/linestring differently for some key values differently than the key in default style.lua (#346)

math1985 notifications at github.com
Tue Feb 23 00:58:37 UTC 2016


I have thought a bit more about this, and I came to the following conclusions:
* An object with both a polygon-key and a line-key are currently treated as polygon. Therefore, the logical thing to do is to treat an object with both a polygon-key and a line-tag (e.g. building=yes and historic=citywalls) also as polygon. I have changed the code to handle this correctly. Thanks again @mboeringa.
* Current practice is that objects that can be interpreted as a line, such as highways, are interpreted as lines even when they form a closed linestring. To treat them as an area, the tag area=yes is needed. I'd like to follow that practice, so with this PR, tags like historic=citywalls or waterway=weir will be interpreted as line even for closed linestring. This can be overruled by adding either area=yes or an area tag, such as building=yes.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/346#issuecomment-187457886
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20160222/c184a29e/attachment.html>


More information about the Tile-serving mailing list