diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-02 21:32:02 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-02 21:32:02 +1000 |
commit | f8e36dd46eb331dd26d09a3659abd1ee94264016 (patch) | |
tree | 4d7bfe8717103f7a9941bc6bc6ec6a72aff088cf /Makefile |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..66de284 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +# download VicMap source data +# the URL here usually gets manually updated weekly though no guarantees +# it's a mirror of the upstream VICMAP data with split shp files reduced to a single shp file +downloadVicmap: + mkdir -p data + wget --directory-prefix=data https://www.alantgeo.com.au/share/VICMAP_ADDRESS.zip + +unzip: data/VICMAP_ADDRESS.zip + mkdir -p data/vicmap + unzip -d data/vicmap $< + +data/vicmap.geojson: data/vicmap/ll_gda94/sde_shape/whole/VIC/VMADD/layer/address.shp + ogr2ogr -f GeoJSONSeq $@ $< + +dist/vicmap-osm.geojson: data/vicmap.geojson + ./vicmap2osm.js $< $@ + +data/vicmap.fgb: data/vicmap/ll_gda94/sde_shape/whole/VIC/VMADD/layer/address.shp + ogr2ogr -f FlatGeobuf $@ $< + +dist/vicmap-osm.fgb: dist/vicmap-osm.geojson + ogr2ogr -f FlatGeobuf $@ $< |