Added new GDAL plugin and osgbluemarble example to demonstrate how to create

PagedLOD'd databases using GDAL.
This commit is contained in:
Robert Osfield
2003-10-08 13:09:23 +00:00
parent 48fc18fe8b
commit e7c0d70747
15 changed files with 713 additions and 2 deletions

View File

@@ -94,6 +94,18 @@ char DataInputStream::readChar(){
return c;
}
unsigned char DataInputStream::readUChar(){
unsigned char c;
_istream->read((char*)&c, CHARSIZE);
if (_istream->rdstate() & _istream->failbit)
throw Exception("DataInputStream::readUChar(): Failed to read unsigned char value.");
if (_verboseOutput) std::cout<<"read/writeUChar() ["<<(int)c<<"]"<<std::endl;
return c;
}
unsigned short DataInputStream::readUShort(){
unsigned short s;
_istream->read((char*)&s, SHORTSIZE);