46 lines
1.7 KiB
YAML
46 lines
1.7 KiB
YAML
|
layer:
|
||
|
id: "mountain_peak"
|
||
|
requires:
|
||
|
tables:
|
||
|
- ne_10m_admin_0_countries
|
||
|
description: |
|
||
|
[Natural peaks](http://wiki.openstreetmap.org/wiki/Tag:natural%3Dpeak)
|
||
|
buffer_size: 64
|
||
|
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
|
||
|
fields:
|
||
|
name: The OSM [`name`](http://wiki.openstreetmap.org/wiki/Key:name) value of the peak. Language-specific values are in `name:xx`.
|
||
|
name_en: English name `name:en` if available, otherwise `name`. This is deprecated and will be removed in a future release in favor of `name:en`.
|
||
|
name_de: German name `name:de` if available, otherwise `name` or `name:en`. This is deprecated and will be removed in a future release in favor of `name:de`.
|
||
|
class:
|
||
|
description: |
|
||
|
Use the **class** to differentiate between natural objects.
|
||
|
values:
|
||
|
- peak
|
||
|
- volcano
|
||
|
- saddle
|
||
|
- ridge
|
||
|
- cliff
|
||
|
- arete
|
||
|
ele: Elevation (`ele`) in meters.
|
||
|
ele_ft: Elevation (`ele`) in feet.
|
||
|
customary_ft:
|
||
|
description: |
|
||
|
Value 1 for peaks in location where feet is used as customary unit (USA).
|
||
|
values:
|
||
|
- 1
|
||
|
- NULL
|
||
|
rank: Rank of the peak within one tile (starting at 1 that is the most important peak).
|
||
|
datasource:
|
||
|
geometry_field: geometry
|
||
|
key_field: osm_id
|
||
|
key_field_as_attribute: no
|
||
|
srid: 900913
|
||
|
query: (SELECT osm_id, geometry, name, name_en, name_de, {name_languages}, class, ele, ele_ft, customary_ft, rank FROM layer_mountain_peak(!bbox!, z(!scale_denominator!), !pixel_width!)) AS t
|
||
|
schema:
|
||
|
- ./update_peak_point.sql
|
||
|
- ./update_mountain_linestring.sql
|
||
|
- ./mountain_peak.sql
|
||
|
datasources:
|
||
|
- type: imposm3
|
||
|
mapping_file: ./mapping.yaml
|