openmaptiles/layers/poi/poi.yaml

77 wiersze
3.9 KiB
YAML
Czysty Zwykły widok Historia

2016-10-28 15:46:10 +00:00
layer:
id: "poi"
description: |
2016-10-28 20:34:42 +00:00
[Points of interests](http://wiki.openstreetmap.org/wiki/Points_of_interest) containing
a of a variety of OpenStreetMap tags. Mostly contains amenities, sport, shop and tourist POIs.
buffer_size: 64
2016-10-28 15:46:10 +00:00
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:
2016-10-28 20:34:42 +00:00
name: The OSM [`name`](http://wiki.openstreetmap.org/wiki/Key:name) value of the POI.
2017-03-17 12:15:40 +00:00
name_en: English name `name:en` if available, otherwise `name`.
name_de: German name `name:de` if available, otherwise `name` or `name:en`.
2016-10-28 20:34:42 +00:00
class: |
More general classes of POIs. If there is no more general `class` for the `subclass`
this field will contain the same value as `subclass`.
But for example for schools you only need to style the class `school` to filter the subclasses `school`
and `kindergarten`. Or use the class `shop` to style all shops.
2017-01-05 15:46:11 +00:00
subclass:
description: |
Original value of either the
[`amenity`](http://wiki.openstreetmap.org/wiki/Key:amenity),
2019-05-17 15:28:20 +00:00
[`barrier`](http://wiki.openstreetmap.org/wiki/Key:barrier),
[`historic`](http://wiki.openstreetmap.org/wiki/Key:historic),
[`information`](http://wiki.openstreetmap.org/wiki/Key:information),
2017-01-05 15:46:11 +00:00
[`landuse`](http://wiki.openstreetmap.org/wiki/Key:landuse),
2019-05-17 15:28:20 +00:00
[`leisure`](http://wiki.openstreetmap.org/wiki/Key:leisure),
[`railway`](http://wiki.openstreetmap.org/wiki/Key:railway),
2019-05-17 15:28:20 +00:00
[`shop`](http://wiki.openstreetmap.org/wiki/Key:shop),
2017-01-05 15:46:11 +00:00
[`sport`](http://wiki.openstreetmap.org/wiki/Key:sport),
2019-05-17 15:28:20 +00:00
[`station`](http://wiki.openstreetmap.org/wiki/Key:station),
[`religion`](http://wiki.openstreetmap.org/wiki/Key:religion),
[`tourism`](http://wiki.openstreetmap.org/wiki/Key:tourism),
2019-05-17 15:28:20 +00:00
[`aerialway`](http://wiki.openstreetmap.org/wiki/Key:aerialway),
[`building`](http://wiki.openstreetmap.org/wiki/Key:building),
[`highway`](http://wiki.openstreetmap.org/wiki/Key:highway)
or [`waterway`](http://wiki.openstreetmap.org/wiki/Key:waterway)
2017-01-05 15:46:11 +00:00
tag. Use this to do more precise styling.
2016-10-29 09:15:46 +00:00
rank: |
The POIs are ranked ascending according to their importance within a grid. The `rank` value shows the
2017-01-05 15:46:11 +00:00
local relative importance of a POI within it's cell in the grid. This can be used to reduce label density at *z14*.
Since all POIs already need to be contained at *z14* you can use `less than rank=10` epxression to limit
POIs. At some point like *z17* you can show all POIs.
agg_stop:
description: |
Experimental feature! Indicates main platform of public transport
stops (buses, trams, and subways). Grouping of platforms is
implemented using
[`uic_ref`](http://wiki.openstreetmap.org/wiki/Key:uic_ref) tag that
is not used worldwide.
values: [1]
level:
description: |
Original value of [`level`](http://wiki.openstreetmap.org/wiki/Key:level) tag.
layer:
description: |
Original value of [`layer`](http://wiki.openstreetmap.org/wiki/Key:layer) tag.
indoor:
description: |
Original value of [`indoor`](http://wiki.openstreetmap.org/wiki/Key:indoor) tag.
values:
- 1
2016-10-28 15:46:10 +00:00
datasource:
geometry_field: geometry
2017-11-28 18:38:59 +00:00
key_field: osm_id
key_field_as_attribute: no
2016-10-28 15:46:10 +00:00
srid: 900913
query: (SELECT osm_id, geometry, name, name_en, name_de, {name_languages}, class, subclass, agg_stop, layer, level, indoor, rank FROM layer_poi(!bbox!, z(!scale_denominator!), !pixel_width!)) AS t
2016-10-28 15:46:10 +00:00
schema:
- ./public_transport_stop_type.sql
- ./update_poi_polygon.sql
- ./update_poi_point.sql
2016-10-28 15:46:10 +00:00
- ./class.sql
- ./poi_stop_agg.sql
2016-10-28 15:46:10 +00:00
- ./layer.sql
datasources:
- type: imposm3
mapping_file: ./mapping.yaml