21 #ifndef ossimDtedHandler_HEADER 22 #define ossimDtedHandler_HEADER 62 static const int TOTAL_POSTS = 4;
64 static const int NUM_POSTS_PER_BLOCK= 2;
86 DATA_RECORD_OFFSET_TO_POST = 8,
87 DATA_RECORD_CHECKSUM_SIZE = 4,
114 virtual bool open(std::shared_ptr<ossim::istream>& fileStr,
const std::string& connectionString,
bool memoryMapFlag=
false);
115 virtual void close();
142 virtual bool isOpen()
const;
224 void gatherStatistics();
234 void readPostsFromFile(
DtedHeight &postData,
int offset);
258 std::shared_ptr<ossimDtedVol>
m_vol;
259 std::shared_ptr<ossimDtedHdr>
m_hdr;
260 std::shared_ptr<ossimDtedUhl>
m_uhl;
261 std::shared_ptr<ossimDtedDsi>
m_dsi;
262 std::shared_ptr<ossimDtedAcc>
m_acc;
273 s = (
m_swapBytesFlag ? ( ((s & 0x00ff) << 8) | ((s & 0xff00) >> 8) ) : s);
278 return (static_cast<ossim_sint16>(s & 0x7fff) * -1);
virtual double getHeightAboveMSL(const ossimGpt &)=0
Height access methods:
std::shared_ptr< ossimDtedVol > m_vol
virtual const ossimFilename & getFilename() const
ossimString m_productLevel
const ossimDtedVol & vol() const
std::shared_ptr< ossimDtedUhl > m_uhl
ossim_int32 m_numLonLines
std::vector< ossim_uint8 > m_memoryMap
unsigned short ossim_uint16
std::shared_ptr< ossimDtedHdr > m_hdr
virtual bool getAccuracyInfo(ossimElevationAccuracyInfo &info, const ossimGpt &gpt) const
std::shared_ptr< ossimDtedDsi > m_dsi
virtual bool isOpen() const
std::mutex m_fileStrMutex
const ossimDtedHdr & hdr() const
DtedHeight is a class for storing DTED information.
ossimString m_compilationDate
virtual bool open(const ossimFilename &, bool=false)
signed short ossim_sint16
std::shared_ptr< ossim::istream > m_fileStr
virtual double getPostValue(const ossimIpt &gridPt) const =0
METHOD: getPostValue Returns the value at a given grid point as a double.
const ossimDtedAcc & acc() const
the DTED handler is an elevation source that allows for handling of a single cell of data...
ossim_int32 m_numLatPoints
ossim_sint16 convertSignedMagnitude(ossim_uint16 &s) const
const ossimSource & operator=(const ossimSource &rhs)
ossim_int32 m_offsetToFirstDataRecord
ossim_int32 m_dtedRecordSizeInBytes
const ossimDtedDsi & dsi() const
std::shared_ptr< ossimDtedAcc > m_acc
virtual ossimObject * dup() const
std::mutex m_memoryMapMutex
const ossimDtedUhl & uhl() const
ossimDtedHandler()
Constructor.
std::string m_connectionString
virtual ossimIpt getSizeOfElevCell() const =0
METHOD: getSizeOfElevCell Returns the number of post in the cell.
DtedPost, this class contains the height, weighting factor and status.