[Tile-serving] [osm2pgsql] Fix style.lua error with non numerical layer values (#145)

Tim Waters notifications at github.com
Tue May 6 20:19:38 UTC 2014


The value for the layer tag should be numeric. But there are a few non numeric values in the OSM db - http://taginfo.openstreetmap.org/keys/layer#values This causes an error of something like: "attempt to perform arithmetic on local 'layer' (a string value)". Thus we check to see if the value is a number.

Full props to @systemed for this!
You can merge this Pull Request by running:

  git pull https://github.com/timwaters/osm2pgsql patch-1

Or you can view, comment on it, or merge it online at:

  https://github.com/openstreetmap/osm2pgsql/pull/145

-- Commit Summary --

  * Fix style.lua error with non numerical layer values

-- File Changes --

    M style.lua (2)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/145.patch
https://github.com/openstreetmap/osm2pgsql/pull/145.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/145
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20140506/4218f9d5/attachment.html>


More information about the Tile-serving mailing list