ShapefileImport
takes the most recent version of the NWB and gives you plain CSV output with all the fields needed to create a query based on road + milemarker
or latitude + longitude
.
The GPS coordinates present in the NWB are EPSG:28992 (Amersfoort / RD New)
and will be translated to the EPSG:4326 WGS84
LatLon with WGS84 datum used by GPS units and Google Earth.
- The script has to be run with a Python 2 interpreter. Such an interpreter is usually installed by default as the
python
command on Apple and Linux systems. If you do not have a Python 2 interpreter, you can get one from the Python website (choose the button labeled "Download Python 2.7.X"). - Install PIP (The PyPA recommended tool for installing and managing Python packages.)
- It is recommended to install virtualenv by running
pip install virtualenv
and optionally virtualenvwrapper (A set of extensions to Ian Bicking’s virtualenv tool.) to make working with virtualenvs easier. If you do, create a virtualenv and activate it. - Run
pip install -r requirements.txt
- Download the most recent version of the NWB from here and extract the contents of the .zip file to a folder named
input
in yourproject root
. After this step, theinput
folder in yourproject root
should contain 2 directories (Hectopunten
andWegvakken
) and their content. - Run
python app.py
to start the processing. - After processing, the
output
folder in theproject root
will contain 3 CSV files (Hectopunten.csv
,merged.csv
andWegvakken.csv
). merged.csv
will be the file one will generally use to import into an Relational Database or for other kinds of querying.