[gdal-dev] GDAL, osgEarth and GDAL-GRASS plugin

Markus Neteler neteler at osgeo.org
Tue Apr 28 07:00:14 EDT 2009


Hi,

I am trying to feed osgEarth (OpenSceneGraph plugin [1]) directly with GRASS
data using the GDAL-GRASS plugin [2]. While the GRASS maps are
recognized (e.g., the osgdem tool [3] converts GRASS data without problems)
the following GDAL problem appears with osgearth:

osgviewer gdal_multiple_files_GRASS.earth
[osgEarth::GDAL] GDAL Driver found 1 files
  /home/neteler/software/osgearth/data/world.tif
[osgEarth::GDAL] GDAL Driver found 2 files
  /home/neteler/grassdata/latlong_wgs84/PERMANENT/cellhd/srtm2_north_italy.shade
  /home/neteler/grassdata/latlong_wgs84/PERMANENT/cellhd/srtm2_north_italy
0...10...20...30...40...50Warning 1: GRASS warning: GISBASE enviroment
variable was not set, using:
/home/neteler/grass64/dist.x86_64-unknown-linux-gnu
...60...70...80...90...100 - done.
gdalbuildvrt does not support heterogenous band characteristics.
Skipping /home/neteler/grassdata/latlong_wgs84/PERMANENT/cellhd/srtm2_north_italy
gdalbuildvrt does not support heterogenous band characteristics.
Skipping /home/neteler/grassdata/latlong_wgs84/PERMANENT/cellhd/srtm2_north_italy
Segmentation fault

Not sure what the error means... since "osgdem" is able to convert from the
GRASS format, why should "osgearth" fail? Apparently they use a
different mechanism
to  open GDAL maps? I am using OpenSceneGraph 2.8.

Thanks for any advice,
Markus

[1] http://wush.net/trac/osgearth
[2] http://grass.osgeo.org/wiki/Compile_and_install_GDAL-GRASS_plugin
[3] http://www.openscenegraph.org/projects/osg/wiki/Support/UserGuides/osgdem


More information about the gdal-dev mailing list