Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.11 KB

README.md

File metadata and controls

54 lines (34 loc) · 1.11 KB

docker container to load whosonfirst in to spatialite.

quick start

./example.sh

how can run this container?

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

how can I rebuild the image?

clone this repository, cd in the directory and run:

docker build -t 'missinglink/wof-spatialite' .