openmaptiles/layers/place/place.yaml

41 wiersze
2.1 KiB
YAML
Czysty Zwykły widok Historia

2016-10-09 19:27:09 +00:00
layer:
id: "place"
description: |
2016-10-28 10:05:18 +00:00
The place layer consists out of [countries](http://wiki.openstreetmap.org/wiki/Tag:place%3Dcountry),
[states](http://wiki.openstreetmap.org/wiki/Tag:place%3Dstate) and [cities](http://wiki.openstreetmap.org/wiki/Key:place).
2016-10-29 09:15:13 +00:00
Apart from the roads this is also one of the more important layers to create a beautiful map.
We suggest you use different font styles and sizes to create a text hierarchy.
fields:
name: The OSM [`name`](http://wiki.openstreetmap.org/wiki/Key:name) value of the POI.
name_en: The english `name:en` value if available.
class: |
Distinguish between `country`, `state` and other city classes like
`city`, `town`, `village`, `hamlet`, `suburb`, `neighbourhood` or `isolated_dwelling`.
Use this to separately style the different places according to their importance (usually country and state different
than cities).
rank: |
2016-10-29 10:10:23 +00:00
Countries, states and the most important cities all have a `rank` to boost their importance on the map.
The `rank` field for counries and states ranges from `1` to `6` while the `rank` field for
2016-10-29 12:49:53 +00:00
cities ranges from `1` to `10` for the most important cities and continues from `10` serially based
on the local importance of the city (derived from population and city class).
Use the `rank` field to build a text hierarchy.
2016-10-29 12:29:41 +00:00
The rank value is a combination of the Natural Earth `scalerank`, `labelrank` and `datarank` values for countries
2016-10-29 12:49:53 +00:00
and states and for cities consists out of a shifted Natural Earth `scalerank` combined with a local rank
within a grid for cities that do not have a Natural Earth `scalerank`.
2016-10-09 19:27:09 +00:00
buffer_size: 128
datasource:
2016-10-24 12:44:14 +00:00
geometry_field: geometry
2016-10-29 09:15:13 +00:00
query: (SELECT geometry, name, name_en, class, rank FROM layer_place(!bbox!, z(!scale_denominator!), !pixel_width!)) AS t
2016-10-09 19:27:09 +00:00
schema:
2016-10-28 10:05:18 +00:00
- ./types.sql
- ./city.sql
2016-10-24 12:44:14 +00:00
- ./country.sql
- ./state.sql
- ./merge_country_rank.sql
- ./merge_city_rank.sql
- ./merge_state_rank.sql
2016-10-09 19:27:09 +00:00
- ./place.sql
2016-10-10 18:19:18 +00:00
datasources:
- type: imposm3
mapping_file: ./mapping.yaml