Skip to content
/ osm-rdf Public

Converting OpenStreetMap administrative boundaries to RDF

Notifications You must be signed in to change notification settings

ali1k/osm-rdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Converting OpenStreetMap administrative boundaries to RDF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published