2016-10-09 19:27:09 +00:00
|
|
|
layer:
|
|
|
|
id: "place"
|
2016-10-23 15:36:48 +00:00
|
|
|
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
|
|
|
|
cities ranges from `1` to `10`. Use the `rank` field to build a text hierarchy.
|
|
|
|
The rank value is a combination of the Natural Earth `scalerank`, `labelrank` and `datarank` values.
|
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
|
2016-10-29 08:36:57 +00:00
|
|
|
- ./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
|