Skip to content

Commit

Permalink
Splits trail POIs to separate tileset
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Jul 15, 2024
1 parent 95185b6 commit e1ac276
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 96 deletions.
95 changes: 0 additions & 95 deletions renderer/layers/trails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,101 +198,6 @@ layers:
- highway: __any__
- trail: yes
attributes: *trail_attributes
- id: trail_poi
features:
# collect ranger stations, trailheads, and put-ins mapped as nodes
- source: osm
geometry: point
min_zoom: 7
include_when:
amenity: ranger_station
highway: trailhead
attributes:
&trail_poi_attributes
- key: OSM_ID
value: "${feature.id}"
- key: OSM_TYPE
value: "${feature.osm_type}"
- key: OSM_VERSION
value: "${feature.osm_version}"
- key: OSM_TIMESTAMP
value: "${feature.osm_timestamp}"
- key: OSM_CHANGESET
value: "${feature.osm_changeset}"
- key: OSM_USER_NAME
value: "${feature.osm_user_name}"
- key: access
tag_value: access
- key: amenity
tag_value: amenity
- key: atv
tag_value: atv
- key: bicycle
tag_value: bicycle
- key: canoe
tag_value: canoe
- key: check_date
tag_value: check_date
- key: dog
tag_value: dog
- key: fixme
tag_value: fixme
- key: FIXME
tag_value: FIXME
- key: foot
tag_value: foot
- key: highway
tag_value: highway
- key: hiking
tag_value: hiking
- key: horse
tag_value: horse
- key: informal
tag_value: informal
- key: information
tag_value: information
- key: leisure
tag_value: leisure
- key: mtb
tag_value: mtb
- key: name
tag_value: name
- key: noname
tag_value: noname
- key: opening_hours
tag_value: opening_hours
- key: operator
tag_value: operator
- key: ski:nordic
tag_value: ski:nordic
- key: snowmobile
tag_value: snowmobile
- key: survey:date
tag_value: survey:date
- key: todo
tag_value: todo
- key: TODO
tag_value: TODO
- key: trailer
tag_value: trailer
- key: wheelchair
tag_value: wheelchair
# collect ranger stations mapped as areas
- source: osm
geometry: polygon_centroid_if_convex
min_zoom: 7
include_when:
amenity: ranger_station
attributes: *trail_poi_attributes
- source: osm
geometry: point
# route markers are abundant so restrict to higher zooms
min_zoom: 12
include_when:
information:
- route_marker
- guidepost
attributes: *trail_poi_attributes
args:
area:
description: Geofabrik area to download
Expand Down
108 changes: 108 additions & 0 deletions renderer/layers/trails_poi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
---
schema_name: OSM US Trail POIs
schema_description: Trailheads, ranger stations, route markers, and guideposts.
attribution: <a href="https://www.openstreetmap.org/copyright" target="_blank">&copy; OpenStreetMap contributors</a>
sources:
osm:
type: osm
local_path: data/sources/planet.osm.pbf
layers:
- id: trail_poi
features:
# collect ranger stations, trailheads, and put-ins mapped as nodes
- source: osm
geometry: point
min_zoom: 7
include_when:
amenity: ranger_station
highway: trailhead
attributes:
&trail_poi_attributes
- key: OSM_ID
value: "${feature.id}"
- key: OSM_TYPE
value: "${feature.osm_type}"
- key: OSM_VERSION
value: "${feature.osm_version}"
- key: OSM_TIMESTAMP
value: "${feature.osm_timestamp}"
- key: OSM_CHANGESET
value: "${feature.osm_changeset}"
- key: OSM_USER_NAME
value: "${feature.osm_user_name}"
- key: access
tag_value: access
- key: amenity
tag_value: amenity
- key: atv
tag_value: atv
- key: bicycle
tag_value: bicycle
- key: canoe
tag_value: canoe
- key: check_date
tag_value: check_date
- key: dog
tag_value: dog
- key: fixme
tag_value: fixme
- key: FIXME
tag_value: FIXME
- key: foot
tag_value: foot
- key: highway
tag_value: highway
- key: hiking
tag_value: hiking
- key: horse
tag_value: horse
- key: informal
tag_value: informal
- key: information
tag_value: information
- key: leisure
tag_value: leisure
- key: mtb
tag_value: mtb
- key: name
tag_value: name
- key: noname
tag_value: noname
- key: opening_hours
tag_value: opening_hours
- key: operator
tag_value: operator
- key: ski:nordic
tag_value: ski:nordic
- key: snowmobile
tag_value: snowmobile
- key: survey:date
tag_value: survey:date
- key: todo
tag_value: todo
- key: TODO
tag_value: TODO
- key: trailer
tag_value: trailer
- key: wheelchair
tag_value: wheelchair
# collect ranger stations mapped as areas
- source: osm
geometry: polygon_centroid_if_convex
min_zoom: 7
include_when:
amenity: ranger_station
attributes: *trail_poi_attributes
- source: osm
geometry: point
# route markers are abundant so restrict to higher zooms
min_zoom: 12
include_when:
information:
- route_marker
- guidepost
attributes: *trail_poi_attributes
args:
area:
description: Geofabrik area to download
default: rhode-island
2 changes: 1 addition & 1 deletion renderer/layers/water_trails_poi.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
schema_name: OSM US Water Trail POIs
schema_description: Slipways, access points, dams, weirs, and waterfalls.
schema_description: Slipways, access points, locks, dams, weirs, and waterfalls.
attribution: <a href="https://www.openstreetmap.org/copyright" target="_blank">&copy; OpenStreetMap contributors</a>
sources:
osm:
Expand Down

0 comments on commit e1ac276

Please sign in to comment.