[Tile-serving] [openstreetmap/osm2pgsql] Add geometry functions in Lua / new insert syntax (PR #1736)
Jochen Topf
notifications at github.com
Wed Aug 10 13:07:32 UTC 2022
@joto commented on this pull request.
> +
+ local g = object:as_polygon()
+ tables.polygons:insert({
+ name = object.tags.name,
+ geom = g,
+ center = g:centroid(),
+ type = g:geometry_type()
+ })
+ end
+
+ function osm2pgsql.process_relation(object)
+ local g = object:as_multipolygon()
+ tables.polygons:insert({
+ name = object.tags.name,
+ geom = g,
+ type = g:geometry_type()
Fixed in new version.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1736#discussion_r942428206
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/1736/review/1068248253 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220810/31775596/attachment.htm>
More information about the Tile-serving
mailing list