doc: add note about YAML format
parent
07dbeae13a
commit
013e395f5c
|
@ -5,6 +5,9 @@ The data mapping defines which `OSM feature types <http://wiki.openstreetmap.org
|
||||||
|
|
||||||
See `example-mapping.yml <https://raw.githubusercontent.com/omniscale/imposm3/master/example-mapping.yml>`_ for an example.
|
See `example-mapping.yml <https://raw.githubusercontent.com/omniscale/imposm3/master/example-mapping.yml>`_ for an example.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
The `YAML format <https://en.wikipedia.org/wiki/YAML>`_ uses indentations to indicate nesting. Tab characters are not allowed.
|
||||||
|
Quotes around simple strings are optional with YAML. ``"simple_string"``, ``'simple_string'`` and ``simple_string`` are all equal. However, numbers and boolean values (``yes``, ``no``, ``true``, ``false``) need to be quoted when they should be interpreted as a string (for example, when filtering ``building: ['no']``).
|
||||||
|
|
||||||
Tables
|
Tables
|
||||||
------
|
------
|
||||||
|
@ -112,7 +115,7 @@ The following mapping only imports buildings with a `name` tag. Buildings with `
|
||||||
require:
|
require:
|
||||||
name: [__any__]
|
name: [__any__]
|
||||||
reject:
|
reject:
|
||||||
building: [no, none]
|
building: ['no', none]
|
||||||
reject_regexp:
|
reject_regexp:
|
||||||
level: '^\D+.*$'
|
level: '^\D+.*$'
|
||||||
mapping:
|
mapping:
|
||||||
|
|
Loading…
Reference in New Issue