From f9b5f1afcf868e291648e5f7db4f7656b06963ec Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Tue, 17 Aug 2021 15:26:26 +1000 Subject: fix a few makefile errors --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 21263c7..202c31e 100644 --- a/Makefile +++ b/Makefile @@ -132,9 +132,12 @@ data/mb.geojson: data/mb.fgb: data/mb.geojson ogr2ogr -f FlatGeobuf $@ $< +data/victoria-extract.osm.pbf: data/victoria.osm.pbf + osmium extract --bbox 144.95366,-37.80284,145.00272,-37.77482 --output=$@ --overwrite $< + # extract roads from OSM data/victoria-roads.osm.pbf: data/victoria.osm.pbf - osmium tags-filter --remove-tags --output=$@ $< w/highway=motorway,trunk,primary,secondary,tertiary,unclassified,residential,living_street,road,service + osmium tags-filter --remove-tags --overwrite --output=$@ $< w/highway=motorway,trunk,primary,secondary,tertiary,unclassified,residential,living_street,road,service # extract road lines into geojson data/victoria-roads.geojson: data/victoria-roads.osm.pbf @@ -183,6 +186,7 @@ data/coastStripSplitBySuburb.fgb: data/coastalStrip.fgb data/suburbLinesInCoasta # count OSM addresses by block, those with no OSM addresses we can import all the candidate addresses without conflation issues dist/blocksByOSMAddr.fgb: data/victoria-addr.osm.centroids.fgb data/blocksWithCoastalStripSplit.fgb + mkdir -p dist qgis_process run native:countpointsinpolygon -- POINTS=$< POLYGONS='data/blocksWithCoastalStripSplit.fgb' FIELD=NUMPOINTS OUTPUT=$@ dist/blocksByOSMAddr.geojson: dist/blocksByOSMAddr.fgb -- cgit v1.2.3