### Makefile --- study one street: Heshun Road 和順路 ## Author: Dan Jacobson https://www.jidanni.org/ ## Copyright: https://www.gnu.org/licenses/gpl.html ## Created: 2025-01-29T08:17:36+0000 ## Last-Updated: 2026-03-03T21:26:31+0000 ## Update #: 1508 d=~/Downloads/d/data s_ROAD_SOURCE=$d/heshun.path.geojson s_ADDRESS_SOURCE=$d/heshun.adr.geojson s_ROAD_FILTER=WHERE name LIKE "和順路" s_NUM_FILTER=$$_ % 50 == 0 s_OFFSET_FROM_CENTERLINE=40 s_ADDRESS_FILTER=WHERE "addr:housenumber" NOT LIKE "%之%" AND "addr:housenumber" LIKE "%號" VIEWER=viking MAPS=side0.gpx side1.gpx ties.gpx tiepoints0.gpx tiepoints1.gpx v3: look:$(MAPS) if pidof -q $(VIEWER); then killall --wait --signal SIGHUP $(VIEWER); fi; \ >> /tmp/nohup2.out nohup $(VIEWER) $^ & sleep 11 MAKEFLAGS+=-I ../../../../utilities include shoelace.makefile backtrack.gpkg:stringL0.gpkg Makefile #What? $R $S 'SELECT "$(basename $@)" as name, $(\ )ST_OffsetCurve( geom , -8*360/40000000 ) AS geom $(\ ) FROM $N' -explodecollections v3:backtrack.gpx stringP0.gpx ; viking $^ clean:; rm --verbose *.gpx *.csv *.vrt *.gpkg # s=和順路 # a=Taichung#Beitun District # N:=https://overpass-turbo.eu/?Q=[out:json][timeout:25];\ # {{geocodeArea:$a}}->.searchArea;\ # node["addr:street"="$s"](area.searchArea);out geom;&R # W:=https://overpass-turbo.eu/?Q=[out:json][timeout:25];\ # {{geocodeArea:$a}}->.searchArea;\ # way[highway]["name"="$S"](area.searchArea);out geom;&R # nnn:; $$BROWSER '$N' # www:; $$BROWSER '$W' %.info:% ogrinfo -q -al $<|perl -pwle \ '$$commas=(tr/,//); s/(^.{40}).*(.{40})$$/$$1...$$2 $$commas/;' .SECONDARY: .DELETE_ON_ERROR: