[osg-users] [vpb] osgdem and shapefiles (for --forest/--building)

Christian Sam osgforum at tevs.eu
Sun Mar 15 09:13:55 PDT 2009


hi,

i'm using vpb-0.9.9 and osg-2.8.0. as long as i don't use shape files with the --forest/buidling option, osgdem works flawless, but when i use it, it crashes at the following line:


Code:

D:\workspace\test-geodata\vpb\graz>osgdem -t ortho\test.tif -d dem\test.tif --forest forest\test.shp --height 10 --TERRAIN -o out-vpb2\graz.ive
-t ortho\test.tif
-d dem\test.tif
--forest forest\test.shp
Applying UserData
-o out-vpb2\graz.ive
Adding terrainTile
Adding model
addModel : Assigned coordinate system ()
addModel(4,)
   extents 531928 540774
           5.20866e+006 5.2177e+006
DataSet::_run() 0 0
ERROR 6: SetColorTable() not supported for existing TIFF files.
DataSet::assignDestinationCoordinateSystem() : assigning first source file as th
e destination coordinate system
started DataSet::createDestination(30)
AR=1.000000 C1=1 R1=1
createNewDestinationGraph
Time for _destinationGraph->computeMaximumSourceResolution() = 0.002304
Time for createDestinationGraph 0.014481
Time for after_computeNeighbours 0.001316
Time for consolodateRequiredResolutions 0.000001
Source::do3DObjectReprojectionUsingFileCache(), should be setting projection to
PROJCS["WGS 84 / UTM zone 33N",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84
",6378137,298.2572235630016,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"]
],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER[
"central_meridian",15],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting
",500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]]
,AUTHORITY["EPSG","32633"]]




it tried different SRSs for my geodata, but it didnt help. btw: if i use the same shapefiles in osggis or use a simple ogr2ogr command everything works, so i think the problem isn't caused from my fwtools-2.0.4.

thanks in advance,
christian

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=8501#8501








More information about the osg-users mailing list