[OSM-dev] OSM2GEO - Converting OSM files as GeoJSON

Philipp Borgers borgers at mi.fu-berlin.de
Mon Nov 28 17:32:30 GMT 2011


Maybe someone is interested in this script:

https://gist.github.com/1401195

Supports nodes and ways. Does not support attributes like version,
changeset etc. 

Regards
Philipp

On Mon, 2011-11-28 at 16:06 +0100, Philipp Borgers wrote:
> Maybe you want to take a look at this project. (Geo-)Couch uses geojson
> as data representation. The import will generate some kind of geojson.
> There is also an imposm branch if you don't want to compile osmium. 
> 
> https://github.com/emka/OSMCouch/blob/imposm/import/osmcouch-importer.py
> 
> I have also written a small script to import/print geosjon for all
> points of an osm file.
> 
> https://github.com/booo/osm2geocouch
> 
> Regards
> Philipp
> 
> On Mon, 2011-11-28 at 20:05 +0530, Tecoholic Maps wrote:
> > Hello Fellow OSMers,
> > 
> > I have been playing with OSM data for quite sometime and found
> > Polymaps a really good library for rendering maps in SVG. It had
> > really good support for GeoJSON, but OSM had no simple way of using
> > GeoJSON format available. So I built this for people like me who wish
> > to draw some SVG Maps and manipulate things rather than Static images
> > and overlays. 
> > 
> > Here is my post about it and code FTW :) ->
> > http://www.arunmozhi.in/2011/11/osm2geo/
> > 
> > The code is a written in JavaScript. It contains a single function,
> > osm2geo. It takes in a .osm (XML) response and returns the
> > corresponding GeoJSON. It depends entirely on jQuery. Use it and let
> > me know if you like it :)
> > 
> > Make some great maps :)
> > 
> > -- 
> > by
> > Arunmozhi
> > http://twitter.com/tecoholic
> > http://www.arunmozhi.in
> > 
> > _______________________________________________
> > dev mailing list
> > dev at openstreetmap.org
> > http://lists.openstreetmap.org/listinfo/dev
> 
> 
> 
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev





More information about the dev mailing list