Hi Cedric, I just had to make a minor adjustment to the CMakeLists.txt file to get it compile, but otherwise no code changes to the plugin. I did make a change to src/osg/Geometry.cpp though to fix a inappropriate warning that was being emitted due to your removePrimitveSet being called when the list was empty, this was being triggered by a .shp file I have that I was using for testing.
One curious thing I noticed is that one .shp file I have didn't load with anything, another worked fine but the polygons all came out multi-coloured. The OSG's standard .shp loaded handles both files correctly. Unfortunately the test files aren't ones I can share. Do you code the multi-coloured geometries? The new plugin is now checked into SVN. Robert. On Jan 18, 2008 4:37 PM, Cedric Pinson <[EMAIL PROTECTED]> wrote: > 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 > > > -- > +33 (0) 6 63 20 03 56 Cedric Pinson mailto:[EMAIL PROTECTED] > http://www.plopbyte.net > > > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
