These scripts prepare the RABA-KGZ source shapefile into form suitable for import into OpenStreetMap, by performing these actions:
- Re-project source from Gauss-Krueger/D48 into EPSG:4326 (aka ETRS89, WGS84) using GeoCoordinateConverter
- Split the reprojected shapefile into smaller 2x3 km sections as defined in split grid, manage-able for import
- Dissolve (join) neighboring polygons of same type into one
- Tag the splits with OpenStreetMap tags directly as defined in mapping table.
- Hack the produced shapefile to include 11-character fieldname and special character (namely "source:date" and "raba:id" OSM tags)
- Zip all the parts of shapefile for import using JOSM with opengeodata plugin
- Optional: use JOSM remote control via dedicated raba.openstreetmap.si website (source in git) to perform import
- Source shapefile from http://rkg.gov.si/GERK/, eg. RABA_2015_10_31.RAR (600 MB)
- GeoCoordinateConverter (http://geocoordinateconverter.tk) was needed to convert old national D48 Gauss Krueger source before it was available in D96 Traverse Mercator
ogr2ogr
from GDAL suitebbe
Binary block editor
-
Run the main script:
./prepareSource.sh
-
Wait an hour for the script to finish - for best results just put it in cron and enjoy .
- OpenStreetMap local and global community
- Matjaž Rihtar (author of GeoCoordinateConverter)
- Štefan Baebler (author of RabaSplitForOSM and raba.openstreetmap.si)
- Ministry of Agriculture, Forestry and Food (authors of RABA source data)
- FOSSGIS (hosting via their sponsor Strato)