[osg-submissions] simple ogr reader writer
Cedric Pinson
mornifle at plopbyte.net
Mon Jan 21 04:08:28 PST 2008
Yes i code the multi color to watch different layer of ogr by default.
It could be optional it it's a problem.
Cedric
Robert Osfield wrote:
> 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 <mornifle at plopbyte.net> 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:mornifle at plopbyte.net http://www.plopbyte.net
>>
>>
>>
>> _______________________________________________
>> osg-submissions mailing list
>> osg-submissions at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>>
>>
>>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
--
+33 (0) 6 63 20 03 56 Cedric Pinson mailto:mornifle at plopbyte.net http://www.plopbyte.net
More information about the osg-submissions
mailing list