-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Splits trail POIs to separate tileset
- Loading branch information
1 parent
95185b6
commit e1ac276
Showing
3 changed files
with
109 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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">© 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters