tags not cached if only used in relation member
chnav opened this issue · 2 comments
chnav commented
Hi,
do not know is this feature or bug:
Tags not cached if they only applied to ways/nodes, used as relation_member and option from_member:true being set
My import configuration
tables:
waterareas_outlines:
type: relation_member
fields:
- name: osm_id
type: id
- name: member
type: member_id
- name: way
type: geometry
- name: name
type: string
key: name
- name: type
type: mapping_value
- name: intermittent
type: boolint
key: intermittent
from_member: true
- name: seasonal
type: boolint
key: seasonal
from_member: true
- name: area
type: pseudoarea
mapping:
landuse: [basin, reservoir]
natural: [water, wetland]
waterway: [riverbank]
Example:
way https://www.openstreetmap.org/way/413958037 with seasonal=yes
is part of water relation https://www.openstreetmap.org/relation/6173321
After cached and imported into database, the seasonal tag is lost (always set 0).
If I change above configuration
tags:
load_all: true
then seasonal tag is imported OK
Thanks
olt commented
load_all
is required right now for relation/relation_member tables. The tag filtering is still incomplete for these table types. I've added a note to the documentation.
chnav commented
Note: my bad, the issue and olt's comment are related to imposm3.