docker container to load whosonfirst in to spatialite.
./example.sh
first you need to fetch the whosonfirst data and put it in a directory on disk, the directory should have one or more subdirectories containing the .geojson files you wish to import:
$ ls /tmp/inputdir
data meta
create another directory where you would like to store the output sqlite database:
$ mkdir -p /tmp/outputdir
initialize the database:
$ docker run -e 'DB=/out/wof.sqlite' -v '/tmp/outputdir:/out' 'missinglink/wof-spatialite' init
make sure that worked:
$ ls /tmp/outputdir
wof.sqlite
import all the things:
$ docker run -e 'DB=/out/wof.sqlite' -v '/tmp/inputdir:/in' -v '/tmp/outputdir:/out' 'missinglink/wof-spatialite' index_all '/in'
see ./spatialite.sh in this repo for a full list of supported commands
clone this repository, cd in the directory and run:
docker build -t 'missinglink/wof-spatialite' .