It seems that VPB (SVN revision 953) won't accept DTED data. Looking at
the VPB code, VPB gets a list of GDAL supported extensions (and adds a
few that GDAL doesn't report). Looking at GDAL, it fails to report the
DTED extensions (.dt0, .dt1, .dt2) via the
GetMetadataItem(DMD_EXTENSIONS) method. The result is VPB reports that
DTED files are not supported. I don't know if the fix belongs in GDAL
or VPB, but as a quick work-around add the following lines to the end of
the VPB System constructor (src/vpb/System.cpp):
addSupportedExtension("dt0", Source::IMAGE | Source::HEIGHT_FIELD, "DTED
Level 0");
addSupportedExtension("dt1", Source::IMAGE | Source::HEIGHT_FIELD, "DTED
Level 1");
addSupportedExtension("dt2", Source::IMAGE | Source::HEIGHT_FIELD, "DTED
Level 2");
Ken.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org