openmaptiles/layers/water_name/water_name.yaml

27 wiersze
1.1 KiB
YAML

layer:
id: "water_name"
description: |
Lake center lines for labelling lake bodies.
This is based of the [osm-lakelines](https://github.com/lukasmartinelli/osm-lakelines) project
which derives nice centerlines from OSM water bodies. Only the most important lakes contain labels.
fields:
name: The OSM [`name`](http://wiki.openstreetmap.org/wiki/Key:name) value of the water body.
name_en: The english `name:en` value if available.
class: |
At the moment only `lake` since no ocean parts are labelled. *Reserved for future use*.
buffer_size: 8
srs: +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over
datasource:
geometry_field: geometry
srid: 900913
query: (SELECT geometry, name, name_en, class FROM layer_water_name(!bbox!, z(!scale_denominator!))) AS t
schema:
- ./water_lakeline.sql
- ./water_point.sql
- ./layer.sql
datasources:
- type: imposm3
mapping_file: ../water/mapping.yaml
- type: imposm3
mapping_file: ./mapping.yaml