Skip to content

Instantly share code, notes, and snippets.

@mattiasb
Created May 26, 2014 04:07
Show Gist options
  • Save mattiasb/2392433d207f4a6cc34d to your computer and use it in GitHub Desktop.
Save mattiasb/2392433d207f4a6cc34d to your computer and use it in GitHub Desktop.
Makefile for initializing tz_world.sqlite
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