From e1ac27660fc3643bf3c24ee031f5530ab5ed12a4 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Mon, 15 Jul 2024 10:03:48 -0400 Subject: [PATCH] Splits trail POIs to separate tileset --- renderer/layers/trails.yml | 95 ----------------------- renderer/layers/trails_poi.yml | 108 +++++++++++++++++++++++++++ renderer/layers/water_trails_poi.yml | 2 +- 3 files changed, 109 insertions(+), 96 deletions(-) create mode 100644 renderer/layers/trails_poi.yml diff --git a/renderer/layers/trails.yml b/renderer/layers/trails.yml index 9426159..11514dd 100644 --- a/renderer/layers/trails.yml +++ b/renderer/layers/trails.yml @@ -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 diff --git a/renderer/layers/trails_poi.yml b/renderer/layers/trails_poi.yml new file mode 100644 index 0000000..f1d7036 --- /dev/null +++ b/renderer/layers/trails_poi.yml @@ -0,0 +1,108 @@ +--- +schema_name: OSM US Trail POIs +schema_description: Trailheads, ranger stations, route markers, and guideposts. +attribution: © OpenStreetMap contributors +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 diff --git a/renderer/layers/water_trails_poi.yml b/renderer/layers/water_trails_poi.yml index d1d082b..039a723 100644 --- a/renderer/layers/water_trails_poi.yml +++ b/renderer/layers/water_trails_poi.yml @@ -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: © OpenStreetMap contributors sources: osm: