OSMLib

From OpenStreetMap Wiki
(Redirected from Osmlib)
Jump to navigation Jump to search
Logo.png
This page describes a historic artifact in the history of OpenStreetMap. It does not reflect the current situation, but instead documents the historical concepts, issues, or ideas.
About
OSMLib is an abandoned Ruby library for reading, exporting and generally handling OSM data.
Reason for being historic
The library has been abandoned since about 2009 and might not support OSM data released after the introduction of API_0.6 (April 2009).
Captured time
2020


OSMLib is an abandoned Ruby library for reading, exporting and generally handling OSM data. It is a set of ruby modules and classes developed by Jochen Topf and released to the public domain.

OSMLib allows us to export OSM-data to most common GIS-Formats like Shapefiles (shp), Google Earth (KML), comma separated values (CSV) and preliminary GPX (GPS-Exchange Format), aswell as SQLite

Installation

Requires ruby1.8-dev

osm to shapefile conversion

Firstly it should be noted that OSMLib's shapefile conversion is rather inefficient, and this is not the conversion utility used by Geofabrik to create their shapefile downloads. See Shapefile page for a list of alternative approaches.

If you want to try using OSMLib, you have to specify which kind of information you're interested in. This is done by a Rulefile in Ruby Syntax. Please make yourself familiar with the OSM Library Documentation for further details. There's also a setup section for export notes into Shapefile.

See also