Skip to Content

osmconf.ini

  1. #
  2. # Configuration file for OSM import
  3. #
  4.  
  5. # put here the name of keys for ways that are assumed to be polygons if they are closed
  6. # see http://wiki.openstreetmap.org/wiki/Map_Features
  7. closed_ways_are_polygons=aeroway,amenity,boundary,building,craft,geological,historic,landuse,leisure,military,natural,office,place,shop,sport,tourism,waterway
  8.  
  9. # comment to avoid laundering of keys ( ':' turned into '_' )
  10. attribute_name_laundering=yes
  11.  
  12. # uncomment to report all nodes, including the ones without any (significant) tag
  13. #report_all_nodes=yes
  14.  
  15. # uncomment to report all ways, including the ones without any (significant) tag
  16. #report_all_ways=yes
  17.  
  18. [points]
  19. # common attributes
  20. osm_id=yes
  21. osm_version=no
  22. osm_timestamp=no
  23. osm_uid=no
  24. osm_user=no
  25. osm_changeset=no
  26.  
  27. # keys to report as OGR fields
  28. attributes=name,barrier,highway,ref,address,is_in,place,man_made,population,amenity,shop,tourism,railway,historic,office,craft
  29. # keys that, alone, are not significant enough to report a node as a OGR point
  30. unsignificant=created_by,converted_by,source,time,ele
  31. # keys that should NOT be reported in the "other_tags" field
  32. ignore=created_by,converted_by,source,time,ele,note,openGeoDB:,fixme,FIXME
  33. # uncomment to avoid creation of "other_tags" field
  34. #other_tags=no
  35.  
  36. [lines]
  37. # common attributes
  38. osm_id=yes
  39. osm_version=no
  40. osm_timestamp=no
  41. osm_uid=no
  42. osm_user=no
  43. osm_changeset=no
  44.  
  45. # keys to report as OGR fields
  46. attributes=name,highway,waterway,aerialway,barrier,man_made,oneway,bridge,tunnel,maxspeed,ref,railway,width
  47. # keys that should NOT be reported in the "other_tags" field
  48. ignore=area,created_by,converted_by,source,time,ele,note,openGeoDB:,fixme,FIXME
  49. # uncomment to avoid creation of "other_tags" field
  50. #other_tags=no
  51.  
  52. [multipolygons]
  53. # common attributes
  54. # note: for multipolygons, osm_id=yes instanciates a osm_id field for the id of relations
  55. # and a osm_way_id field for the id of closed ways. Both fields are exclusively set.
  56. osm_id=yes
  57. osm_version=no
  58. osm_timestamp=no
  59. osm_uid=no
  60. osm_user=no
  61. osm_changeset=no
  62.  
  63. # keys to report as OGR fields
  64. attributes=name,type,aeroway,amenity,admin_level,barrier,boundary,building,craft,geological,historic,land_area,landuse,leisure,man_made,military,natural,office,place,shop,sport,tourism,waterway,highway
  65. # keys that should NOT be reported in the "other_tags" field
  66. ignore=area,created_by,converted_by,source,time,ele,note,openGeoDB:,fixme,FIXME
  67. # uncomment to avoid creation of "other_tags" field
  68. #other_tags=no
  69.  
  70. [multilinestrings]
  71. # common attributes
  72. osm_id=yes
  73. osm_version=no
  74. osm_timestamp=no
  75. osm_uid=no
  76. osm_user=no
  77. osm_changeset=no
  78.  
  79. # keys to report as OGR fields
  80. attributes=name,type
  81. # keys that should NOT be reported in the "other_tags" field
  82. ignore=area,created_by,converted_by,source,time,ele,note,openGeoDB:,fixme,FIXME
  83. # uncomment to avoid creation of "other_tags" field
  84. #other_tags=no
  85.  
  86. [other_relations]
  87. # common attributes
  88. osm_id=yes
  89. osm_version=no
  90. osm_timestamp=no
  91. osm_uid=no
  92. osm_user=no
  93. osm_changeset=no
  94.  
  95. # keys to report as OGR fields
  96. attributes=name,type
  97. # keys that should NOT be reported in the "other_tags" field
  98. ignore=area,created_by,converted_by,source,time,ele,note,openGeoDB:,fixme,FIXME
  99. # uncomment to avoid creation of "other_tags" field
  100. #other_tags=no