Discussion:
osg+osm
Айдар Ильдарович
2013-09-17 15:09:06 UTC
Permalink
Hello!
I use OpenSceneGraph 3.0.1 in my research.
Please, help me, how to use and to load files of OpenStreetMap (extension o5m, pbf, osm) in osgviewer.
Sergey Kurdakov
2013-09-17 19:02:57 UTC
Permalink
Hi Idar,

it is not that easy, but here you may find some code at

http://www.osgvisual.org/projects/osgvisual/wiki/OsgTerrainData

Regards
Sergey
Preet
2013-09-17 19:40:50 UTC
Permalink
Post by Айдар Ильдарович
Hello!
I use OpenSceneGraph 3.0.1 in my research.
Please, help me, how to use and to load files of OpenStreetMap (extension
o5m, pbf, osm) in osgviewer.
You can't do this directly. The files have to be opened and parsed
using another library and then you need to decide how to set up your
scene graph based on your needs. How would OpenSceneGraph know what
you want to do with an OpenStreetMap <node> or <way> and other such
elements?
Jason Beverage
2013-09-18 14:40:37 UTC
Permalink
You should take a look at osgEarth (http://osgearth.org). If you are just
looking to rasterize the OSM and overlay it on some terrain you can use
something like MapServer or GeoServer to do the rasterization and expose it
as a WMS service that osgEarth can access. You can also use MapBox.com to
generate rasterized OSM maps and access them in osgEarth.

If you need access to the raw vector data from OSM you also might be able
to use the pbf files directly in osgEarth if you use GDAL 1.10, it looks
like it has an OGR driver for it (http://www.gdal.org/ogr/drv_osm.html).
If that works then you can use the OGR driver for osgEarth and apply any
styling you want from simple vector rendering to extrusion of building
polygons.

Jason
Post by Preet
Post by Айдар Ильдарович
Hello!
I use OpenSceneGraph 3.0.1 in my research.
Please, help me, how to use and to load files of OpenStreetMap (extension
o5m, pbf, osm) in osgviewer.
You can't do this directly. The files have to be opened and parsed
using another library and then you need to decide how to set up your
scene graph based on your needs. How would OpenSceneGraph know what
you want to do with an OpenStreetMap <node> or <way> and other such
elements?
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Loading...