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

Sarah Hoffmann notifications at github.com
Tue Feb 23 21:22:21 UTC 2016


>     for i,k in ipairs(polygon_keys) do
>        if keyvalues[k] then
> +         polygontag = 1
> +         -- However, if the key/value combination occurs in linestring_values, do not treat the object as polygon
> +         for index,tag in pairs(linestring_values) do
> +            if k == tag[1] and keyvalues[k] == tag[2] then
> +               polygontag = 0
> +               break
> +            end
> +         end
> +         if polygontag == 1 then
> +            polygon = 1

I believe you forgot a  break here. Further, I don't quite see what is the use of 'polygontag'. Setting 'polygon' directly should have the same effect.

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


More information about the Tile-serving mailing list