openmaptiles/layers/landuse/mapping.yaml

78 wiersze
1.7 KiB
YAML

generalized_tables:
# etldoc: imposm3 -> osm_landuse_polygon_gen5
landuse_polygon_gen5:
source: landuse_polygon_gen4
sql_filter: area>power(ZRES7,2)
tolerance: ZRES9
# etldoc: imposm3 -> osm_landuse_polygon_gen4
landuse_polygon_gen4:
source: landuse_polygon_gen3
sql_filter: area>power(ZRES8,2)
tolerance: ZRES10
# etldoc: imposm3 -> osm_landuse_polygon_gen3
landuse_polygon_gen3:
source: landuse_polygon_gen2
sql_filter: area>power(ZRES9,2)
tolerance: ZRES11
# etldoc: imposm3 -> osm_landuse_polygon_gen2
landuse_polygon_gen2:
source: landuse_polygon_gen1
sql_filter: area>power(ZRES10,2)
tolerance: ZRES12
# etldoc: imposm3 -> osm_landuse_polygon_gen1
landuse_polygon_gen1:
source: landuse_polygon
sql_filter: area>power(ZRES11,2)
tolerance: ZRES13
tables:
# etldoc: imposm3 -> osm_landuse_polygon
landuse_polygon:
type: polygon
fields:
- name: osm_id
type: id
- name: geometry
type: validated_geometry
- name: landuse
key: landuse
type: string
- name: amenity
key: amenity
type: string
- name: leisure
key: leisure
type: string
- name: tourism
key: tourism
type: string
- name: area
type: area
- name: webmerc_area
type: webmerc_area
mapping:
amenity:
- bus_station
- school
- university
- kindergarten
- college
- library
- hospital
landuse:
- railway
- cemetery
- military
# zoning
- residential
- commercial
- industrial
- retail
leisure:
- stadium
- pitch
- playground
tourism:
- theme_park
- zoo