Municipalities, Provinces, Regions etc as linestrings (with polygons used in intermediate step) representing what is left/right of the border
50 lines
2.1 KiB
YAML
50 lines
2.1 KiB
YAML
layer:
|
|
id: "nuts"
|
|
description: |
|
|
Contains administrative boundaries as linestrings (municipalities, counties, provinces, ...)
|
|
Administrative regions are translated to their equivalent NUTS/LAU classification
|
|
Fields indicate which NUTS-region is to the left and right of the linestring
|
|
fields:
|
|
nuts_level:
|
|
The mininum NUTS/LAU classification this linestring is part of.
|
|
NUTS only goes to 3 thus LAU 1 & 2 are mapped as NUTS 4 & 5.
|
|
NUTS 0 = Countries
|
|
NUTS 1 = Regions (e.g. Vlaams-brabant)
|
|
NUTS 2 = Provinces (e.g. Limburg)
|
|
NUTS 3 = Administrative arrondissements (e.g. Antwerpen, best to ignore these)
|
|
NUTS 4 = Municipalities (e.g. Lummen)
|
|
NUTS 5 = Villages/Suburbs (e.g. Linkhout)
|
|
l_nuts_0_name: |
|
|
Country on the left side of the linestring
|
|
l_nuts_1_name: |
|
|
Region on the left side of the linestring
|
|
l_nuts_2_name: |
|
|
Province on the left side of the linestring
|
|
l_nuts_3_name: |
|
|
Administrative arrondissement on the left side of the linestring
|
|
l_nuts_4_name: |
|
|
Municipality on the left side of the linestring
|
|
l_nuts_5_name: |
|
|
Village/suburb on the left side of the linestring
|
|
r_nuts_0_name: |
|
|
Country on the right side of the linestring
|
|
r_nuts_1_name: |
|
|
Region on the right side of the linestring
|
|
r_nuts_2_name: |
|
|
Province on the right side of the linestring
|
|
r_nuts_3_name: |
|
|
Administrative arrondissement on the right side of the linestring
|
|
r_nuts_4_name: |
|
|
Municipality on the right side of the linestring
|
|
r_nuts_5_name: |
|
|
Village/suburb on the right side of the linestring
|
|
buffer_size: 4
|
|
datasource:
|
|
geometry_field: geometry
|
|
query: (SELECT geometry, nuts_level, l_nuts_0_name, l_nuts_1_name, l_nuts_2_name, l_nuts_3_name, l_nuts_4_name, l_nuts_5_name, r_nuts_0_name, r_nuts_1_name, r_nuts_2_name, r_nuts_3_name, r_nuts_4_name, r_nuts_5_name FROM layer_nuts(!bbox!, z(!scale_denominator!))) AS t
|
|
schema:
|
|
- ./nuts.sql
|
|
datasources:
|
|
- type: imposm3
|
|
mapping_file: ./mapping.yaml
|