11
2- -- This is a default configuration that is a good starting point for
3- -- real-world projects.
2+ -- This is a generic configuration that is a good starting point for
3+ -- real-world projects. Data is split into tables according to geometry type
4+ -- and most tags are stored in hstore columns.
45
56local tables = {}
67
@@ -38,6 +39,7 @@ tables.boundaries = osm2pgsql.define_relation_table('boundaries', {
3839-- If you want some of these keys, perhaps for a debugging layer, just
3940-- delete the corresponding lines.
4041local delete_keys = {
42+ -- "mapper" keys
4143 ' attribution' ,
4244 ' comment' ,
4345 ' created_by' ,
@@ -50,8 +52,9 @@ local delete_keys = {
5052 ' source:*' ,
5153 ' source_ref' ,
5254
53- -- Lots of import tags
54- -- Corine (CLC) (Europe)
55+ -- "import" keys
56+
57+ -- Corine Land Cover (CLC) (Europe)
5558 ' CLC:*' ,
5659
5760 -- Geobase (CA)
@@ -81,6 +84,7 @@ local delete_keys = {
8184 ' LINZ2OSM:*' ,
8285 ' linz2osm:*' ,
8386 ' LINZ:*' ,
87+ ' ref:linz:*' ,
8488
8589 -- WroclawGIS (PL)
8690 ' WroclawGIS:*' ,
@@ -154,12 +158,17 @@ local delete_keys = {
154158 ' lojic:bgnum' ,
155159 -- MassGIS (Massachusetts, US)
156160 ' massgis:way_id' ,
161+ -- Los Angeles County building ID (US)
162+ ' lacounty:*' ,
163+ -- Address import from Bundesamt für Eich- und Vermessungswesen (AT)
164+ ' at_bev:addr_date' ,
157165
158166 -- misc
159167 ' import' ,
160168 ' import_uuid' ,
161169 ' OBJTYPE' ,
162- ' SK53_bulk:load'
170+ ' SK53_bulk:load' ,
171+ ' mml:class'
163172}
164173
165174-- The osm2pgsql.make_clean_tags_func() function takes the list of keys
@@ -223,12 +232,12 @@ function osm2pgsql.process_way(object)
223232 end
224233
225234 if object .is_closed and has_area_tags (object .tags ) then
226- tables .polygons :add_row ({
235+ tables .polygons :add_row ({
227236 tags = object .tags ,
228237 geom = { create = ' area' }
229238 })
230239 else
231- tables .lines :add_row ({
240+ tables .lines :add_row ({
232241 tags = object .tags
233242 })
234243 end
0 commit comments