An open API service indexing awesome lists of open source software.

https://github.com/stefanb/rabasplitforosm

RABA-KGZ split scripts for OpenStreetMap import
https://github.com/stefanb/rabasplitforosm

opendata openstreetmap shapefile slovenia slovenija

Last synced: 7 months ago
JSON representation

RABA-KGZ split scripts for OpenStreetMap import

Awesome Lists containing this project

README

          

Raba split for OpenStreetMap import
===================================

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](https://github.com/mrihtar/GeoCoordinateConverter)
* Split the reprojected shapefile into smaller 2x3 km sections as defined in [split grid](newSplitID_improve1_EPSG4326), 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](SIF_RABA.csv).
* Hack the produced shapefile to include 11-character fieldname and special character (namely "[source:date](https://wiki.openstreetmap.org/wiki/Key:source:date)" and "[raba:id](https://wiki.openstreetmap.org/wiki/Key: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](http://raba.openstreetmap.si) website ([source in git](https://github.com/openstreetmap-si/raba.openstreetmap.si)) to perform import

### Requirements

* Source shapefile from http://rkg.gov.si/GERK/, eg. [RABA_2015_10_31.RAR](http://rkg.gov.si/GERK/documents/RABA_2015_10_31.RAR) (600 MB)
* [GeoCoordinateConverter](https://github.com/mrihtar/GeoCoordinateConverter) (http://geocoordinateconverter.tk) was needed to convert old national D48 Gauss Krueger source before it was available in D96 Traverse Mercator
* [```ogr2ogr```](http://www.gdal.org/ogr2ogr.html) from [GDAL suite](http://www.gdal.org/index.html)
* [```bbe```](https://tracker.debian.org/pkg/bbe) Binary block editor

### Usage

1. Run the main script:

```bash
./prepareSource.sh
```

2.

3. Wait an hour for the script to finish - for best results just put it in cron and enjoy .

### More info

* [Slovenia Landcover Import - RABA-KGZ](https://wiki.openstreetmap.org/wiki/Slovenia_Landcover_Import_-_RABA-KGZ) wiki page
* [OSM Forum topic](http://forum.openstreetmap.org/viewtopic.php?pid=449111)

### Credits

* OpenStreetMap local and global community
* Matjaž Rihtar (author of [GeoCoordinateConverter](http://geocoordinateconverter.tk))
* Štefan Baebler (author of RabaSplitForOSM and [raba.openstreetmap.si](http://raba.openstreetmap.si))
* [Ministry of Agriculture, Forestry and Food](http://www.mkgp.gov.si) (authors of RABA source data)
* [FOSSGIS](http://wiki.openstreetmap.org/wiki/FOSSGIS) (hosting via their sponsor Strato)