Skip to content
Modified source code from CRAB tool to suit ICAR data
Branch: master
Clone or download
Latest commit 76b6c6b Apr 19, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
aptum import crab Feb 28, 2019
conf import crab Feb 28, 2019
css import crab Feb 28, 2019
data first full data run success Apr 19, 2019
doc import crab Feb 28, 2019
screenshots import crab Feb 28, 2019
src import crab Feb 28, 2019
test import crab Feb 28, 2019
.gitignore
CNAME import crab Feb 28, 2019
Leaflet.MakiMarkers.js import crab Feb 28, 2019
README.md test data Apr 16, 2019
deleted.txt import crab Feb 28, 2019
extract.py first full data run success Apr 19, 2019
import.html update extract date Apr 19, 2019
lambert.py import crab Feb 28, 2019
lambert.pyc import crab Feb 28, 2019
loadStreets.js more CRAB to ICAR rename Apr 19, 2019
loadStreets2.js more CRAB to ICAR rename Apr 19, 2019
loadStreets_backup.js more CRAB to ICAR rename Apr 19, 2019
maint_off.html import crab Feb 28, 2019
multiple_NIS_per_PC.log fixed bytestring stuff Apr 19, 2019
new.txt import crab Feb 28, 2019
problems.txt import crab Feb 28, 2019
renamed.txt import crab Feb 28, 2019
results.txt import crab Feb 28, 2019
robots.txt import crab Feb 28, 2019
shapefile.py import crab Feb 28, 2019
shapefile.pyc

README.md

ICAR-import

With the HTML-page 'index.html', data from the ICAR-adressenlijst dataset can be imported into JOSM on a per postcode / per street basis. The up-to-date version of the tool is found at http://icar-import.osm.be/

The JSON-files in the data folder are derived from the ICAR-adressenlijst dataset using the python import script extract.py. So they fall under the Free Open Data License (Flanders v1.0.). Wallonia equivalent needed here.

DATA Update

Updating the data is rather simple, but you have to make sure that all the removed streetnames are actually gone, and that the new streetnames are added.

  1. Make sure this git repo is updated (git pull)
  2. First download the shapefile zips from the Wallonia somehow try:
  http://geoportail.wallonie.be/catalogue/2998bccd-dae4-49fb-b6a5-867e6c37680f.html  
  1. Extract the zip on your computer, you need the entire Shapefile directory together (so not only the .shp file).
  2. Delete the data directory (rm -r data) to remove the old streets
  3. Run the extract script with Python 2 (either called python or python2 depending on your system).
python2 extract.py ../path/to/Shapefile/ADR.shp
  1. Add the new streets to git (git add --all data/*). If you forget this step, places where new streets are created won't load anymore.
  2. Update the extraction date in the import.html file
  3. Commit the changes (git commit -a -m "Updated data to yyyy-mm-dd")
  4. Push the changes to the online repo (git push origin master)
You can’t perform that action at this time.