We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb9d951 + e6cd655 commit ab8fa1dCopy full SHA for ab8fa1d
flex-config/generic.lua
@@ -248,12 +248,12 @@ function osm2pgsql.process_way(object)
248
end
249
250
function osm2pgsql.process_relation(object)
251
+ local type = object:grab_tag('type')
252
+
253
if clean_tags(object.tags) then
254
return
255
256
- local type = object.tags.type
-
257
if type == 'route' then
258
tables.routes:add_row({
259
tags = object.tags,
@@ -270,7 +270,7 @@ function osm2pgsql.process_relation(object)
270
271
272
273
- if object.tags.type == 'multipolygon' then
+ if type == 'multipolygon' then
274
tables.polygons:add_row({
275
276
geom = { create = 'area' }
0 commit comments