openmaptiles/layers/landuse/mapping.yaml

62 wiersze
1.3 KiB
YAML

generalized_tables:
# etldoc: imposm3 -> osm_landuse_polygon_gen4
landuse_polygon_gen4:
source: landuse_polygon_gen3
sql_filter: area>2000000
tolerance: 160.0
# etldoc: imposm3 -> osm_landuse_polygon_gen3
landuse_polygon_gen3:
source: landuse_polygon_gen2
sql_filter: area>960000
tolerance: 80.0
# etldoc: imposm3 -> osm_landuse_polygon_gen2
landuse_polygon_gen2:
source: landuse_polygon_gen1
sql_filter: area>240000
tolerance: 40.0
# etldoc: imposm3 -> osm_landuse_polygon_gen1
landuse_polygon_gen1:
source: landuse_polygon
sql_filter: area>60000
tolerance: 20.0
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: area
type: webmerc_area
mapping:
amenity:
- school
- university
- kindergarten
- college
- library
- hospital
landuse:
- railway
- cemetery
- military
# zoning
- residential
- commercial
- industrial
- retail
leisure:
- stadium