Skip to content

Mapping of POIs #433

Answered by msbarry
rinigus asked this question in Q&A
Jan 7, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Those come from processing openmaptiles yaml files, for example this file tells openmaptiles and planetiler-openmaptiles which elements to choose, and how to map the tags from those elements to columns in intermediate sql tables:

https://github.com/openmaptiles/openmaptiles/blob/master/layers/poi/mapping.yaml

For shop=hairdresser, hairdresser is a value it extracts for shop attribute, then these lines map the key that produced the match (shop) to the mapping_key column and value (hairdresser) to the subclass column which gets passed through to the output:

https://github.com/openmaptiles/openmaptiles/blob/cd77b07e469b8f7726c286723e81d4b24ff7d5cc/layers/poi/mapping.yaml#L341-L344

  - name: s…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rinigus
Comment options

@msbarry
Comment options

@rinigus
Comment options

Answer selected by rinigus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants