OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimDemUtil.h>
Static Public Member Functions | |
static bool | isUsgsDem (const ossimFilename &file) |
Does basic sanity checks to see if file is a dem. More... | |
static bool | isUsgsDem (std::shared_ptr< ossim::istream > str, const std::string &connectionString) |
static bool | getRecord (ossim::istream &s, std::string &strbuf, long reclength=1024) |
Reads a single record from a DEM. More... | |
static bool | getRecord (ossim::istream &s, char *buf, long reclength=1024) |
Same as getRecord above. More... | |
static long | getLong (char *const strbuf, long const startpos, long const width) |
static bool | getDouble (std::string const &strbuf, long const startpos, long const width, double &val) |
Private Member Functions | |
ossimDemUtil () | |
Definition at line 25 of file ossimDemUtil.h.
|
private |
|
static |
Definition at line 185 of file ossimDemUtil.cpp.
Referenced by ossimDemHeader::open(), and operator>>().
|
static |
Definition at line 203 of file ossimDemUtil.cpp.
Referenced by ossimDemHeader::open(), and operator>>().
|
static |
Reads a single record from a DEM.
Returns true if succesful. Returns false if EOF or error.
Definition at line 146 of file ossimDemUtil.cpp.
Referenced by ossimDemHeader::open(), and operator>>().
|
static |
Same as getRecord above.
buf should be at least reclength+1 in size.
Definition at line 159 of file ossimDemUtil.cpp.
|
static |
Does basic sanity checks to see if file is a dem.
1) Check extension for .dem
2) Look for file.omd (ossim meta data) file containing keyword "dem_type" with value of "usgs_dem".
3) Check 512 bytes and make sure there is no binary data.
file | The file to check. |
Definition at line 28 of file ossimDemUtil.cpp.
References ossimString::downcase(), ossimFilename::exists(), ossimFilename::ext(), ossimKeywordlist::find(), ossimErrorStatusInterface::getErrorStatus(), ossimErrorCodes::OSSIM_OK, and ossimFilename::setExtension().
Referenced by ossimDemInfo::open(), and ossimDemHeader::open().
|
static |
Definition at line 78 of file ossimDemUtil.cpp.
References ossimString::downcase(), ossimFilename::exists(), ossimFilename::ext(), ossimKeywordlist::find(), ossimErrorStatusInterface::getErrorStatus(), ossimErrorCodes::OSSIM_OK, and ossimFilename::setExtension().