@@ -27,13 +27,13 @@ themepark:add_table{
2727 { column = ' sport' , type = ' text' },
2828 { column = ' vending' , type = ' text' },
2929 { column = ' information' , type = ' text' },
30- { column = ' tower_type ' , type = ' text' },
30+ { column = ' tower:type ' , type = ' text' },
3131 { column = ' religion' , type = ' text' },
3232 { column = ' denomination' , type = ' text' },
33- { column = ' recycling_glass_bottles ' , type = ' bool' },
34- { column = ' recycling_paper ' , type = ' bool' },
35- { column = ' recycling_clothes ' , type = ' bool' },
36- { column = ' recycling_scrap_metal ' , type = ' bool' },
33+ { column = ' recycling:glass_bottles ' , type = ' bool' },
34+ { column = ' recycling:paper ' , type = ' bool' },
35+ { column = ' recycling:clothes ' , type = ' bool' },
36+ { column = ' recycling:scrap_metal ' , type = ' bool' },
3737 { column = ' atm' , type = ' bool' },
3838 }),
3939 tags = {
@@ -117,10 +117,10 @@ add_extra_attributes.amenity = function(a, t)
117117 t .amenity == ' pub' or t .amenity == ' bar' or t .amenity == ' cafe' then
118118 a .cuisine = t .cuisine
119119 elseif t .amenity == ' recycling' then
120- a . recycling_glass_bottles = t [' recycling:glass_bottles' ] == ' yes'
121- a . recycling_paper = t [' recycling:paper' ] == ' yes'
122- a . recycling_clothes = t [' recycling:clothes' ] == ' yes'
123- a . recycling_scrap_metal = t [' recycling:scrap_metal' ] == ' yes'
120+ a [ ' recycling:glass_bottles ' ] = t [' recycling:glass_bottles' ] == ' yes'
121+ a [ ' recycling:paper ' ] = t [' recycling:paper' ] == ' yes'
122+ a [ ' recycling:clothes ' ] = t [' recycling:clothes' ] == ' yes'
123+ a [ ' recycling:scrap_metal ' ] = t [' recycling:scrap_metal' ] == ' yes'
124124 elseif t .amenity == ' bank' then
125125 a .atm = t .atm == ' yes'
126126 end
134134
135135add_extra_attributes .man_made = function (a , t )
136136 if t .man_made == ' tower' then
137- a . tower_type = t [' tower:type' ]
137+ a [ ' tower:type ' ] = t [' tower:type' ]
138138 end
139139end
140140
@@ -154,7 +154,6 @@ local get_attributes = function(object)
154154 add_extra_attributes [k ](a , t )
155155 end
156156 is_poi = true
157- break
158157 end
159158 end
160159
@@ -178,7 +177,7 @@ themepark:add_proc('node', function(object, data)
178177 if a then
179178 a .geom = object :as_point ()
180179 themepark :insert (' pois' , a )
181- data .in_pois = true
180+ data .shortbread_in_pois = true
182181 end
183182end )
184183
@@ -187,7 +186,7 @@ themepark:add_proc('area', function(object, data)
187186 if a then
188187 a .geom = object :as_area ():centroid ()
189188 themepark :insert (' pois' , a )
190- data .in_pois = true
189+ data .shortbread_in_pois = true
191190 end
192191end )
193192
0 commit comments