[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:24:35 UTC 2016


> +         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
> +         end
> +      end
> +   end
> +
> +   -- Treat objects with a key/value combination in polygon_values as polygon
> +   for index,tag in pairs(polygon_values) do

Add a 'if polygon == 0' around the for loop.

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


More information about the Tile-serving mailing list