Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 815 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 815 Bytes

OSM-RDF

Converting OSM administrative boundaries to RDF

##Requirements NodeJS and JAVA

Installation

  • run npm install

  • go to ./data folder

    • run ./downloadData bash script to download all the required OSM shape files.
    • run ./installOSMOSIS bash script to install OSMOSIS for processing OSM data.
    • run ./extractAdminBoundaries bash script to process and extract administrative boundaries from the data.
    • run ./convertOSMtoGeoJSON bash script to convert the extracted data to GeoJSON format.
    • run ./convertGeoJSONtoRDF bash script to convert the GeoJSON files to RDF.

Usage

geojson-rdf [country_iso3] [file_or_uri_to_convert]

Example:

./geojson-rdf NLD netherlands.geojson

or

./geojson-rdf AUTO netherlands.geojson for automatic detection of country name