From 052d7225a0a9ce3c63e31dc12db6e1fd178f74a0 Mon Sep 17 00:00:00 2001 From: Amanda McCann Date: Tue, 26 Mar 2024 20:58:07 +0100 Subject: [PATCH] make some CEMT geojsons --- Makefile | 34 ++++++++++++++++++++++++++++++++++ make-planet.sh | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3f01893..f9bc874 100644 --- a/Makefile +++ b/Makefile @@ -80,6 +80,40 @@ planet-waterway-boatable.geojsons: planet-waterway.osm.pbf osm-lump-ways -i $< -o tmp.$@ --min-length-m 100 --save-as-linestrings -f waterway -f boat∈yes,motor mv tmp.$@ $@ +planet-waterway-has-cemt.geojsons: planet-waterway.osm.pbf + osm-lump-ways -i $< -o tmp.$@ --min-length-m 100 --save-as-linestrings -f waterway -f CEMT∈0,I,II,III,IV,Va,Vb,VIa,VIb,VIc,VII + mv tmp.$@ $@ + +planet-waterway-cemt-ge-I.geojsons: planet-waterway.osm.pbf + osm-lump-ways -i $< -o tmp.$@ --min-length-m 100 --save-as-linestrings -f waterway -f CEMT∈I,II,III,IV,Va,Vb,VIa,VIb,VIc,VII + mv tmp.$@ $@ + +planet-waterway-cemt-ge-II.geojsons: planet-waterway.osm.pbf + osm-lump-ways -i $< -o tmp.$@ --min-length-m 100 --save-as-linestrings -f waterway -f CEMT∈II,III,IV,Va,Vb,VIa,VIb,VIc,VII + mv tmp.$@ $@ + +planet-waterway-cemt-ge-III.geojsons: planet-waterway.osm.pbf + osm-lump-ways -i $< -o tmp.$@ --min-length-m 100 --save-as-linestrings -f waterway -f CEMT∈III,IV,Va,Vb,VIa,VIb,VIc,VII + mv tmp.$@ $@ + +planet-waterway-cemt-ge-IV.geojsons: planet-waterway.osm.pbf + osm-lump-ways -i $< -o tmp.$@ --min-length-m 100 --save-as-linestrings -f waterway -f CEMT∈IV,Va,Vb,VIa,VIb,VIc,VII + mv tmp.$@ $@ + +planet-waterway-cemt-ge-V.geojsons: planet-waterway.osm.pbf + osm-lump-ways -i $< -o tmp.$@ --min-length-m 100 --save-as-linestrings -f waterway -f CEMT∈V,Va,Vb,VIa,VIb,VIc,VII + mv tmp.$@ $@ + +planet-waterway-cemt-ge-VI.geojsons: planet-waterway.osm.pbf + osm-lump-ways -i $< -o tmp.$@ --min-length-m 100 --save-as-linestrings -f waterway -f CEMT∈VIa,VIb,VIc,VII + mv tmp.$@ $@ + +planet-waterway-cemt-ge-VII.geojsons: planet-waterway.osm.pbf + osm-lump-ways -i $< -o tmp.$@ --min-length-m 100 --save-as-linestrings -f waterway -f CEMT∈VII + mv tmp.$@ $@ + +planet-waterway-cemt-all-geojsons: planet-waterway-has-cemt.geojsons planet-waterway-cemt-ge-I.geojsons planet-waterway-cemt-ge-II.geojsons planet-waterway-cemt-ge-III.geojsons planet-waterway-cemt-ge-IV.geojsons planet-waterway-cemt-ge-V.geojsons planet-waterway-cemt-ge-VI.geojsons planet-waterway-cemt-ge-VII.geojsons + planet-waterway-canoeable.geojsons: planet-waterway.osm.pbf osm-lump-ways -i $< -o tmp.$@ --min-length-m 100 --save-as-linestrings -F "canoe∈yes,portage,permissive,designated,destination,customers,permit→T; portage∈yes,permissive,designated,destination,customers,permit→T; F" mv tmp.$@ $@ diff --git a/make-planet.sh b/make-planet.sh index d4d7f39..a3bcda9 100755 --- a/make-planet.sh +++ b/make-planet.sh @@ -25,7 +25,7 @@ fi # Tiles SECONDS=0 -make planet-waterway-boatable.geojsons planet-waterway-canoeable.geojsons planet-waterway-name-group-name.geojsons planet-waterway-water.geojsons planet-waterway-nonartifical.geojsons planet-waterway-rivers-etc.geojsons +make planet-waterway-boatable.geojsons planet-waterway-canoeable.geojsons planet-waterway-name-group-name.geojsons planet-waterway-water.geojsons planet-waterway-nonartifical.geojsons planet-waterway-rivers-etc.geojsons planet-waterway-cemt-all-geojsons echo "Took $(units ${SECONDS}sec time) (${SECONDS}sec) to generate all geojsons files" SECONDS=0 make planet-waterway-boatable.pmtiles planet-waterway-canoeable.pmtiles planet-waterway-name-group-name.pmtiles planet-waterway-water.pmtiles planet-waterway-nonartifical.pmtiles planet-waterway-rivers-etc.pmtiles