### 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-02-28T12:23:32+0000 ## Update #: 1457 d=~/Downloads/d/data s_PATH_SOURCE=$d/heshun.path.geojson s_ADDRESS_SOURCE=$d/heshun.adr.geojson s_FILTER=WHERE name LIKE "和順路" s_INTERVAL=50 s_OFFSET=40 #We have made an overpass-turbo export of relevant OSM road scraps, #now let's stitch them together. We can set FILTER if we still need #to. Sure hope this makes exactly one LINESTRING... #a4=AND "addr:housenumber" LIKE "4%" # # 2026 年問及戶政人員為什麼台中市北屯區和順路兩側門牌差距那麼大,說是因為軍功國小。 # # ../../../../../presentation.html#gx # # 扣子扣錯、 鞋帶歪歪 ... 鞋帶拉歪 拉鍊對不整齊 鞋、襪子不同雙 # #扣子扣錯在中文直接講「扣子扣錯了」或「釦子扣錯位」即可。若要表達因趕時間而不小心扣錯,可說「不小心扣錯鈕扣」。英文則常用 "skipped a button"(跳過扣眼)或 "button is miss-buttoned"。 衣冠不整 # # Instead of whatever my original objective was, Maybe instead one day # # make a map of how far out of sync the two sides of the road get as # # one goes along. I could use linear referencing along each side, and # # inquire at regular distances, as to what the current difference is, # # and make that into some color step map. clean:; rm --verbose *.gpx *.csv *.vrt *.gpkg #We had too much trouble with KML. GPX works better in our viewer. tiepoints%.gpx:tiepoints%.gpkg; ogr2ogr -nlt POINT $@ $< %.gpx:%.gpkg; ogr2ogr -nlt LINESTRING $@ $< look: side0.gpx side1.gpx ties.gpx tiepoints0.gpx tiepoints1.gpx; viking $^ 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' v=viking %.vik:%.kml if pidof -q $v; then killall --wait --signal SIGHUP $v; fi; \ >> /tmp/nohup2.out nohup $v $^ & sleep 11 %.info:% ogrinfo -q -al $<|perl -pwle \ '$$commas=(tr/,//); s/(^.{40}).*(.{40})$$/$$1...$$2 $$commas/;' %.cl.look:%.cl.A.kml %.cl.M.kml; $(KML_VIEWER) $^ .SECONDARY: .DELETE_ON_ERROR: