[Tile-serving] [openstreetmap/osm2pgsql] Update/add some flex config example files using the new insert() (PR #1744)

Jochen Topf notifications at github.com
Sat Aug 13 08:59:58 UTC 2022


@joto commented on this pull request.



> +    if object.tags.amenity == 'pub' then
+        tables.pubs:insert({
+            name = object.tags.name
+        })
+    end
+end
+
+function osm2pgsql.process_way(object)
+    if clean_tags(object.tags) then
+--        return
+    end
+
+    -- A closed way that also has the right tags for an area is a polygon.
+    if object.is_closed and has_area_tags(object.tags) then
+        -- Creating the polygon geometry takes time, so we do it once here
+        -- and later store it in the table and use it to calclate the area.

fixed in new version

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1744#discussion_r945115733
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/1744/review/1071933365 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220813/2777bc0a/attachment-0001.htm>


More information about the Tile-serving mailing list