2016-10-09 19:27:09 +00:00
layer :
id : "boundary"
2021-11-05 09:04:54 +00:00
requires :
tables :
- osm_border_linestring
- ne_10m_admin_0_countries
- ne_10m_admin_0_boundary_lines_land
- ne_10m_admin_1_states_provinces_lines
- ne_50m_admin_0_boundary_lines_land
- ne_110m_admin_0_boundary_lines_land
2016-10-10 17:29:50 +00:00
description : |
2018-12-18 21:31:12 +00:00
Contains administrative boundaries as linestrings.
2019-05-03 12:47:30 +00:00
Until z4 [Natural Earth data](http://www.naturalearthdata.com/downloads/) is used after which
2019-03-29 21:15:42 +00:00
OSM boundaries ([`boundary=administrative`](http://wiki.openstreetmap.org/wiki/Tag:boundary%3Dadministrative))
2019-12-07 11:18:06 +00:00
are present from z5 to z14 (also for maritime boundaries with `admin_level <= 2` at z4).
2018-12-18 21:31:12 +00:00
OSM data contains several [`admin_level`](http://wiki.openstreetmap.org/wiki/Tag:boundary%3Dadministrative#admin_level)
2016-10-28 18:39:38 +00:00
but for most styles it makes sense to just style `admin_level=2` and `admin_level=4`.
2016-10-09 19:27:09 +00:00
fields :
2016-10-10 17:29:50 +00:00
admin_level : |
OSM [admin_level](http://wiki.openstreetmap.org/wiki/Tag:boundary%3Dadministrative#admin_level)
indicating the level of importance of this boundary.
2016-12-02 07:45:17 +00:00
The `admin_level` corresponds to the lowest `admin_level`
the line participates in.
2016-10-10 17:29:50 +00:00
At low zoom levels the Natural Earth boundaries are mapped to the equivalent admin levels.
2020-11-12 10:14:13 +00:00
adm0_l : |
State name on the left of the border. For country boundaries only (`admin_level = 2`).
adm0_r : |
State name on the right of the border. For country boundaries only (`admin_level = 2`).
2016-12-02 07:45:17 +00:00
disputed :
description : |
2017-01-16 19:11:35 +00:00
Mark with `1` if the border is disputed.
values : [ 0 , 1 ]
2019-12-10 18:48:24 +00:00
disputed_name :
2019-12-07 11:18:06 +00:00
description : |
2019-12-10 18:48:24 +00:00
Field containing name of the disputed area (extracted from border relation in OSM, without spaces).
2019-12-07 11:18:06 +00:00
For country boundaries only (`admin_level = 2`).
Value examples from Asian OSM pbf extract
values :
2019-12-10 18:48:24 +00:00
- AbuMusaIsland
- BaraHotiiValleys
- ChineseClaim
- Crimea
- Demchok
- Dokdo
- IndianClaim-North
- IndianClaimwesternKashmir
- PakistaniClaim
- SamduValleys
- TirpaniValleys
claimed_by :
description : |
ISO2 code of country, which wants to see the boundary line.
For country boundaries only (`admin_level = 2`).
2017-01-16 19:11:35 +00:00
maritime :
description : |
Mark with `1` if it is a maritime border.
2016-12-02 07:45:17 +00:00
values : [ 0 , 1 ]
2016-10-28 18:39:38 +00:00
buffer_size : 4
2016-10-09 19:27:09 +00:00
datasource :
2016-10-28 18:39:38 +00:00
geometry_field : geometry
2020-11-12 10:14:13 +00:00
query : (SELECT geometry, admin_level, adm0_l, adm0_r, disputed, disputed_name, claimed_by, maritime FROM layer_boundary(!bbox!, z(!scale_denominator!))) AS t
2016-10-09 19:27:09 +00:00
schema :
2020-11-12 10:14:13 +00:00
- ./boundary_name.sql
2016-10-09 19:27:09 +00:00
- ./boundary.sql
2019-12-07 11:18:06 +00:00
datasources :
- type : imposm3
mapping_file : ./mapping.yaml