Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.
/ addok-be-data Public archive

Import Belgian addresses in Addok

Notifications You must be signed in to change notification settings

geo6/addok-be-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Import Belgian addresses into Addok

Addok documentation : http://addok.readthedocs.io/

Install

PostgreSQL

https://www.postgresql.org/download/

Tools

sudo apt-get install unzip mdbtools

GDAL library

https://trac.osgeo.org/gdal/wiki/BuildingOnUnix

Install required librairies

sudo apt-get install build-essential libpq-dev libproj-dev pkg-config bash-completion

Download GDAL

Run the following commands in a non-root directory !

wget http://download.osgeo.org/gdal/CURRENT/gdal-2.2.3.tar.gz
tar -zxvf gdal-2.2.3.tar.gz
cd gdal-2.2.3

Build GDAL

./configure --with-pg
make

Install GDAL

sudo make install

export export PATH=/usr/local/bin:$PATH
export export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export export GDAL_DATA=/usr/local/share/gdal

sudo ldconfig

Data

All the following data are open-data !

Import

First, let's generate the data with the format Addok needs :

Brussels data (urbis-fr.sjson + urbis-nl.sjson) :

cd bru/
sh process.sh

Flanders data (crabr.sjson) :

cd vla/
sh process.sh

Now, let's import the data into Addok :

sudo -u addok -i
source venv/bin/activate
addok batch path/to/file.sjson
addok ngrams

If you need to delete every data already imported into Addok use :

addok reset

About

Import Belgian addresses in Addok

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages