openmaptiles/layers/boundary/mapping.yaml

48 wiersze
1.1 KiB
YAML

generalized_tables:
# etldoc: imposm3 -> osm_boundary_linestring_gen5
boundary_linestring_gen5:
source: boundary_linestring
tolerance: 480.0
# etldoc: imposm3 -> osm_boundary_linestring_gen4
boundary_linestring_gen4:
source: boundary_linestring
tolerance: 240.0
# etldoc: imposm3 -> osm_boundary_linestring_gen3
boundary_linestring_gen3:
source: boundary_linestring
tolerance: 120.0
# etldoc: imposm3 -> osm_boundary_linestring_gen2
boundary_linestring_gen2:
source: boundary_linestring
tolerance: 60.0
# etldoc: imposm3 -> osm_boundary_linestring_gen1
boundary_linestring_gen1:
source: boundary_linestring
tolerance: 30.0
tables:
# etldoc: imposm3 -> osm_boundary_linestring
boundary_linestring:
fields:
- name: osm_id
type: id
- name: geometry
type: geometry
- key: admin_level
name: admin_level
type: integer
filters:
reject:
natural: ["coastline"]
require:
admin_level: ["__any__"]
mapping:
boundary:
- administrative
type: linestring