aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-05-20 21:23:58 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-05-20 21:23:58 +1000
commit351bf946b7d52b3c480ffd80560bc277adce091f (patch)
tree5341fc5d18913db328fef3e468586517fd193470 /Makefile
parent9c86dbf30863fec1db7f65d422dd07cb700f1d21 (diff)
script to compare where vicmap addr:suburb differs with osm admin boundary suburb
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index baf7ab2..c25a39f 100644
--- a/Makefile
+++ b/Makefile
@@ -149,3 +149,16 @@ convertConflationResultsToFGB:
ogr2ogr -f FlatGeobuf dist/conflate/exactMatch.fgb dist/conflate/exactMatch.geojson
ogr2ogr -f FlatGeobuf dist/conflate/noExactMatch.fgb dist/conflate/noExactMatch.geojson
ogr2ogr -f FlatGeobuf dist/conflate/noOSMAddressWithinBlock.fgb dist/conflate/noOSMAddressWithinBlock.geojson
+
+# extract admin_level=10 from OSM
+data/victoria-admin.osm.pbf: data/victoria.osm.pbf
+ osmium tags-filter --remove-tags --output=$@ $< r/boundary=administrative
+
+data/victoria-admin-level10.osm.pbf: data/victoria-admin.osm.pbf
+ osmium tags-filter --remove-tags --output=$@ $< r/admin_level=10
+
+data/victoria-admin-level10.osm.geojson: data/victoria-admin-level10.osm.pbf
+ osmium export --overwrite --geometry-types=polygon --output-format=geojsonseq --format-option=print_record_separator=false --output $@ $<
+
+dist/vicmapSuburbDiffersWithOSM.geojson: data/vicmap-osm.geojson data/victoria-admin-level10.osm.geojson
+ ./bin/compareSuburb.geojson $^ $@