document load_all:true requirements for relation/relation_members #51

master
Oliver Tonnhofer 2017-01-04 14:44:04 +01:00
parent f4ccff032e
commit fa4a8f7b73
2 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,8 @@ These relations can not be mapped to `simple` linestrings or polygons as they ca
The Imposm table types ``relation`` and ``relation_member`` allow you to import all relevant data for these relations.
.. note:: ``relation`` and ``relation_member`` require :ref:`load_all<tags>` to have access to all keys.
``relation_member``
^^^^^^^^^^^^^^^^^^^

View File

@ -132,6 +132,9 @@ func (f *RelationTagFilter) Filter(tags *element.Tags) bool {
if tags == nil {
return false
}
// TODO improve filtering for relation/relation_member mappings
// right now this only works with tags.load_all:true
if t, ok := (*tags)["type"]; ok {
if t != "multipolygon" && t != "boundary" && t != "land_area" {
*tags = nil