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
pythoncommand 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 virtualenvand 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
inputin yourproject root. After this step, theinputfolder in yourproject rootshould contain 2 directories (HectopuntenandWegvakken) and their content. - Run
python app.pyto start the processing. - After processing, the
outputfolder in theproject rootwill contain 3 CSV files (Hectopunten.csv,merged.csvandWegvakken.csv). merged.csvwill be the file one will generally use to import into an Relational Database or for other kinds of querying.