/usr/include/ossim/elevation/ossimGeneralRasterElevationDatabase.h is in libossim-dev 1.8.16-3+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | #ifndef ossimGeneralRasterElevationDatabase_HEADER
#define ossimGeneralRasterElevationDatabase_HEADER
#include "ossimElevationDatabase.h"
#include <ossim/base/ossimFilename.h>
#include <ossim/elevation/ossimGeneralRasterElevHandler.h>
#include <OpenThreads/Mutex>
class OSSIM_DLL ossimGeneralRasterElevationDatabase : public ossimElevationCellDatabase
{
public:
ossimGeneralRasterElevationDatabase()
:ossimElevationCellDatabase()
{
}
ossimGeneralRasterElevationDatabase(const ossimGeneralRasterElevationDatabase& rhs)
:ossimElevationCellDatabase(rhs)
{
}
virtual ~ossimGeneralRasterElevationDatabase()
{
if(m_cellHandler.valid())
{
m_cellHandler->close();
}
m_cellHandler = 0;
}
ossimObject* dup()const
{
return new ossimGeneralRasterElevationDatabase(*this);
}
virtual bool open(const ossimString& connectionString);
virtual bool pointHasCoverage(const ossimGpt& gpt) const;
virtual bool getAccuracyInfo(ossimElevationAccuracyInfo& /*info*/, const ossimGpt& /*gpt*/) const
{
return false;
}
/**
* METHODS: accuracyLE90(), accuracyCE90()
* Returns the vertical and horizontal accuracy (90% confidence) in the
* region of gpt:
*/
// virtual double getAccuracyLE90(const ossimGpt& /* gpt */) const
// {
// std::cout << "ossimGeneralElevationDatabase::getAccuracyLE90 \n";
// return 0.0;
// }
// virtual double getAccuracyCE90(const ossimGpt& /* gpt */) const
// {
// std::cout << "ossimGeneralElevationDatabase::getAccuracyCE90 \n";
// return 0.0;
// }
virtual double getHeightAboveMSL(const ossimGpt&);
virtual double getHeightAboveEllipsoid(const ossimGpt& gpt);
virtual bool loadState(const ossimKeywordlist& kwl, const char* prefix = 0);
virtual bool saveState(ossimKeywordlist& kwl, const char* prefix = 0)const;
virtual ossim_uint64 createId(const ossimGpt& /* pt */)const
{
return 0;
}
protected:
ossimRefPtr<ossimGeneralRasterElevHandler> m_cellHandler;
bool openGeneralRasterDirectory(const ossimFilename& dir);
void createRelativePath(ossimFilename& file, const ossimGpt& gpt)const;
void createFullPath(ossimFilename& file, const ossimGpt& gpt)const
{
ossimFilename relativeFile;
createRelativePath(relativeFile, gpt);
file = ossimFilename(m_connectionString).dirCat(relativeFile);
}
ossimRefPtr<ossimElevCellHandler> createHandler(const ossimGpt& /* gpt */);
virtual ossimRefPtr<ossimElevCellHandler> createCell(const ossimGpt& /* gpt */);
TYPE_DATA
};
#endif
|