Created
May 26, 2014 04:07
-
-
Save mattiasb/2392433d207f4a6cc34d to your computer and use it in GitHub Desktop.
Makefile for initializing tz_world.sqlite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: tz_world.sqlite | |
tz_world.sqlite: tz_world.zip /usr/bin/spatialite_tool | |
unzip tz_world.zip | |
spatialite_tool -i -shp world/tz_world -t tz_world -d tz_world.sqlite -c CP1252 | |
rm -r world | |
tz_world.zip: /usr/bin/curl | |
curl "http://efele.net/maps/tz/world/tz_world.zip" -o tz_world.zip | |
/usr/bin/spatialite_tool: | |
pkcon install spatialite-tools | |
clean: | |
rm tz_world.{zip,sqlite} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment