21 lines
650 B
Makefile
21 lines
650 B
Makefile
.PHONY: deploy
|
|
deploy: data/plats.json data/track.geojson satellite
|
|
rsync -avz --exclude=unused/ --delete ./ bert:/srv/www/lawrencedeerclub.chandlerswift.com/
|
|
|
|
data/plats.json: scripts/get_plats.py
|
|
./scripts/get_plats.py data/plats.geojson
|
|
|
|
.PHONY: satellite
|
|
satellite:
|
|
./scripts/download_satellite.py
|
|
|
|
data/track.geojson: resources/deercamp.osm
|
|
OSM_USE_CUSTOM_INDEXING=NO ogr2ogr \
|
|
-overwrite \
|
|
-f GeoJSON \
|
|
-nln track \
|
|
-lco RFC7946=YES \
|
|
-lco COORDINATE_PRECISION=8 \
|
|
-dialect SQLITE \
|
|
-sql "SELECT HSTORE_GET_VALUE(other_tags,'type') AS type, geometry FROM lines WHERE HSTORE_GET_VALUE(other_tags,'type') IS NOT NULL" \
|
|
$@ $<
|