Implement private road tagging (#1174)
Fixes #1066 This PR adds a new field `access` in the transportation layer, which will be set to `no` if the `access` tag is either `no` or `private`. While `private` is the more popular value by a 17:1 ratio, I went with `no` because it's smaller in the tiles. In addition, the text `no` opens up the future possibility of other text-based access values such as `destination`, `customers`, or `permit`. The screenshot below shows an example of access tagging for a road on a military base: 
This commit is contained in:
committed by
GitHub
parent
fdb9ae58cd
commit
45d825e212
@@ -146,6 +146,13 @@ layer:
|
||||
- driveway
|
||||
- alley
|
||||
- parking_aisle
|
||||
access:
|
||||
description: |
|
||||
Access restrictions on this road. Supported values of the
|
||||
[`access`](http://wiki.openstreetmap.org/wiki/Key:access) tag are `no` and `private`,
|
||||
which resolve to `no`.
|
||||
values:
|
||||
- no
|
||||
layer:
|
||||
description: |
|
||||
Original value of the [`layer`](http://wiki.openstreetmap.org/wiki/Key:layer) tag.
|
||||
@@ -180,7 +187,7 @@ layer:
|
||||
datasource:
|
||||
geometry_field: geometry
|
||||
srid: 900913
|
||||
query: (SELECT geometry, class, subclass, network, oneway, ramp, brunnel, service, layer, level, indoor, bicycle, foot, horse, mtb_scale, surface FROM layer_transportation(!bbox!, z(!scale_denominator!))) AS t
|
||||
query: (SELECT geometry, class, subclass, network, oneway, ramp, brunnel, service, access, layer, level, indoor, bicycle, foot, horse, mtb_scale, surface FROM layer_transportation(!bbox!, z(!scale_denominator!))) AS t
|
||||
schema:
|
||||
- ./network_type.sql
|
||||
- ./class.sql
|
||||
|
||||
Reference in New Issue
Block a user