[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:55 UTC 2022
@joto commented on this pull request.
> +function osm2pgsql.process_relation(object)
+ if clean_tags(object.tags) then
+ return
+ end
+
+ local relation_type = object:grab_tag('type')
+
+ -- Store boundary relations as multilinestrings
+ if relation_type == 'boundary' then
+ tables.boundaries:insert({
+ type = object:grab_tag('boundary'),
+ tags = object.tags,
+ -- For relations there is no clear definition what their geometry
+ -- is, so you have to decide on the geometry transformation you
+ -- want. In this case we want the boundary as multilinestring
+ -- and we want lines merged as much as possibl.e
fixed in new version
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1744#discussion_r945115728
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/1744/review/1071933362 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220813/9c65ffeb/attachment.htm>
More information about the Tile-serving
mailing list