/usr/include/ossim/elevation/ossimElevationDatabase.h is in libossim-dev 2.2.2-1.
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 80 81 82 83 84 85 86 87 88 89 90 | #ifndef ossimElevationDatabase_HEADER
#define ossimElevationDatabase_HEADER 1
#include <ossim/base/ossimConstants.h>
#include <ossim/base/ossimKeywordNames.h>
#include <ossim/base/ossimReferenced.h>
#include <ossim/base/ossimRefPtr.h>
#include <ossim/base/ossimKeywordlist.h>
#include <ossim/base/ossimGpt.h>
#include <ossim/base/ossimGeoid.h>
#include <ossim/base/ossimGeoidManager.h>
#include <ossim/elevation/ossimElevSource.h>
#include <ossim/elevation/ossimElevCellHandler.h>
#include <ossim/base/ossimTimer.h>
#include <vector>
#include <map>
class OSSIM_DLL ossimElevationDatabase : public ossimElevSource
{
public:
ossimElevationDatabase()
: ossimElevSource(),
m_meanSpacing(0.0)
{
}
ossimElevationDatabase(const ossimElevationDatabase& src)
: ossimElevSource(src),
m_connectionString(src.m_connectionString),
m_geoid(src.m_geoid),
m_meanSpacing(src.m_meanSpacing)
{
}
virtual bool getAccuracyInfo(ossimElevationAccuracyInfo& /*info*/, const ossimGpt& /*gpt*/) const
{
return false;
}
virtual double getMeanSpacingMeters() const
{
return m_meanSpacing;
}
virtual void setGeoid(ossimGeoid* geoid)
{
m_geoid = geoid;
}
ossimGeoid* getGeoid()
{
return m_geoid.get();
}
const ossimGeoid* getGeoid()const
{
return m_geoid.get();
}
/**
* Open a connection to a database. In most cases this will be a pointer
* to a directory like in a Dted directory reader.
*
*/
virtual bool open(const ossimString& connectionString)=0;
const ossimString& getConnectionString()const
{
return m_connectionString;
}
virtual bool loadState(const ossimKeywordlist& kwl, const char* prefix=0);
virtual bool saveState(ossimKeywordlist& kwl, const char* prefix=0)const;
virtual std::ostream& print(std::ostream& out) const;
protected:
virtual ~ossimElevationDatabase()
{
m_geoid = 0;
}
virtual double getOffsetFromEllipsoid(const ossimGpt& gpt);
ossimString m_connectionString;
ossimRefPtr<ossimGeoid> m_geoid;
ossim_float64 m_meanSpacing;
TYPE_DATA
}; // End: class ossimElevationDatabase
#endif /* #ifndef ossimElevationDatabase_HEADER */
|