aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-05-03 11:45:36 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-05-03 11:45:36 +1000
commit6f29aa3e590a77870ed8d857ccdac01009fae0c1 (patch)
tree7a87647515b49bbfc54c7879642a572a8037d01a /Makefile
parent32a78fde0bc80d6b38b647942462ac12d4c64419 (diff)
use prepare job which saves results in cache to skip lengthy geojson stage
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7fe9954..9013347 100644
--- a/Makefile
+++ b/Makefile
@@ -5,9 +5,21 @@ data/VICMAP_ADDRESS.zip:
mkdir -p data
wget --no-verbose --directory-prefix=data https://www.alantgeo.com.au/share/VICMAP_ADDRESS.zip
-unzip: data/VICMAP_ADDRESS.zip
+# cadastre used for debugging
+data/VICMAP_PROPERTY.zip:
+ mkdir -p data
+ wget --no-verbose --directory-prefix=data https://www.alantgeo.com.au/share/VICMAP_PROPERTY.zip
+
+data/vicmap/ll_gda94/sde_shape/whole/VIC/VMADD/layer/address.shp: data/VICMAP_ADDRESS.zip
+ mkdir -p data/vicmap
+ unzip -d data/vicmap -n $<
+
+data/vicmap/ll_gda94/sde_shape/whole/VIC/VMPROP/layer/property_view.shp: data/VICMAP_PROPERTY.zip
mkdir -p data/vicmap
- unzip -d data/vicmap $<
+ unzip -d data/vicmap -n $<
+
+data/vicmap-property.fgb: data/vicmap/ll_gda94/sde_shape/whole/VIC/VMPROP/layer/property_view.shp
+ ogr2ogr -f FlatGeobuf $@ $<
data/vicmap.geojson: data/vicmap/ll_gda94/sde_shape/whole/VIC/VMADD/layer/address.shp
ogr2ogr -f GeoJSONSeq $@ $<