Ralf Habacker schrieb:
Hi,

Hi Robert,
you can find as attachement a readerwriter for ogr files (.tab, .gml, .shp ...) ogr is a part of gdal so i added the build of ogr plugin if gdal is found. let me know if there is something to change.

to test it
osgviewerd -e ogr file.tab
or
osgviewerd -e ogr file.gml
or
osgviewerd -e ogr file.shp

gdal accepts special "input file names" as shown below
PG:host=localhost user=postgres dbname=osm tables=public.planet_osm_line

when specifing postgis data sources.
Unfortunally with recent trunk svn (Revision: 9791) it is not possible to use the following command line: osgviewer "PG:host=localhost user=postgres dbname=osm tables=public.planet_osm_line.ogr"

The appended patch fixes this behavior.

BTW: Forgot to say that the patch also routes gdal debug and error message to the related osg::notify debug port - this is usefull for debugging ogr plugin. If you like to have this feature as separate patch let me

Regards
Ralf


_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to