aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-10-07 18:39:12 +1100
committerYuchen Pei <id@ypei.org>2023-10-07 18:39:12 +1100
commit01b1509cb381018d11446afdb2fdd342315306b1 (patch)
tree63fcbeeee565db997d62bc55d448a24b5792eea9
parente4c6750db2fdbf80222a30cf9171461c317cd676 (diff)
Add makefile rules to switch between different sizes of vicmap
touch to make make rebuild necessary steps
-rw-r--r--Makefile29
1 files changed, 23 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 40b3bc5..c902a1f 100644
--- a/Makefile
+++ b/Makefile
@@ -22,14 +22,31 @@ data/vicmap/ll_gda2020/filegdb/whole_of_dataset/victoria/VMPROP.gdb: data/VICMAP
data/vicmap-property.fgb: data/vicmap/ll_gda2020/filegdb/whole_of_dataset/victoria/VMPROP.gdb
ogr2ogr -f FlatGeobuf -t_srs 'EPSG:4326' -nlt PROMOTE_TO_MULTI $@ $< PARCEL_VIEW
-data/vicmap.geojson:
- ogr2ogr -f GeoJSONSeq -t_srs 'EPSG:4326' -mapFieldType DateTime=String $@ data/vicmap/ll_gda2020/filegdb/whole_of_dataset/victoria/VICMAP_ADDRESS.gdb
+data/vicmap-original.geojson: data/vicmap/ll_gda2020/filegdb/whole_of_dataset/victoria/VICMAP_ADDRESS.gdb
+ ogr2ogr -f GeoJSONSeq -t_srs 'EPSG:4326' -mapFieldType DateTime=String $@ $<
wc -l $@
-# used for quick debugging
-# ogr2ogr -f GeoJSONSeq -clipsrc 144.95392 -37.80260 144.97298 -37.79204 data/vicmap.geojson data/vicmap/ll_gda2020/filegdb/whole_of_dataset/victoria/VICMAP_ADDRESS.gdb
-vicmapExtract:
- ogr2ogr -f GeoJSONSeq -mapFieldType DateTime=String -clipsrc 144.95366 -37.80284 145.00272 -37.77482 data/vicmap.geojson data/vicmap/ll_gda2020/filegdb/whole_of_dataset/victoria/VICMAP_ADDRESS.gdb
+data/vicmap-debug.geojson: data/vicmap/ll_gda2020/filegdb/whole_of_dataset/victoria/VICMAP_ADDRESS.gdb
+ ogr2ogr -f GeoJSONSeq -clipsrc 144.95392 -37.80260 144.97298 -37.79204 $@ $<
+ wc -l $@
+
+data/vicmap-extracted.geojson: data/vicmap/ll_gda2020/filegdb/whole_of_dataset/victoria/VICMAP_ADDRESS.gdb
+ ogr2ogr -f GeoJSONSeq -mapFieldType DateTime=String -clipsrc 144.95366 -37.80284 145.00272 -37.77482 $@ $^
+ wc -l $@
+
+reset-vicmap-original: data/vicmap-original.geojson
+ ln -sf vicmap-original.geojson data/vicmap.geojson
+ touch --no-create $<
+
+reset-vicmap-debug: data/vicmap-debug.geojson
+ ln -sf vicmap-debug.geojson data/vicmap.geojson
+ touch --no-create $<
+
+reset-vicmap-extracted: data/vicmap-extracted.geojson
+ ln -sf vicmap-extracted.geojson data/vicmap.geojson
+ touch --no-create $<
+
+data/vicmap.geojson: reset-vicmap-original
cleanDist:
rm -rf dist