#include <ossimGeoidNgsHeader.h>
Definition at line 16 of file ossimGeoidNgsHeader.h.
◆ ossimGeoidNgsHeader() [1/2]
ossimGeoidNgsHeader::ossimGeoidNgsHeader |
( |
| ) |
|
◆ ossimGeoidNgsHeader() [2/2]
◆ cols()
int ossimGeoidNgsHeader::cols |
( |
| ) |
const |
|
inline |
◆ dataType()
int ossimGeoidNgsHeader::dataType |
( |
| ) |
const |
|
inline |
◆ dataTypeSize()
int ossimGeoidNgsHeader::dataTypeSize |
( |
| ) |
const |
|
inline |
◆ filename()
◆ getHeightDelta()
double ossimGeoidNgsHeader::getHeightDelta |
( |
double |
lat, |
|
|
double |
lon |
|
) |
| const |
- Returns
- Height delta or ossim::nan() if not found.
Definition at line 108 of file ossimGeoidNgsHeader.cpp.
References dataTypeSize(), filename(), FLT_EPSILON, ossimEndian::getSystemEndianType(), headerSize(), ossim::nan(), ossimNotify(), ossimNotifyLevel_FATAL, ossimEndian::swap(), theByteOrder, theCols, theFilename, theLatDelta, theLonDelta, theSouthernMostLatitude, and theWesternMostLongitude.
116 if(lon < 0.0) lon += 360;
123 long latSpace0 = (long)std::floor(latSpaces);
124 long latSpace1 = latSpace0 + 1;
125 long lonSpace0 = (long)std::floor(lonSpaces);
126 long lonSpace1 = lonSpace0 + 1;
140 double tLat = latSpaces - floor(latSpaces);
141 double tLon = lonSpaces - floor(lonSpaces);
149 input.seekg(offset00,ios::beg);
150 input.read((
char*)&v00, 4);
152 input.seekg(offset01,ios::beg);
153 input.read((
char*)&v01, 4);
155 input.seekg(offset11,ios::beg);
156 input.read((
char*)&v11, 4);
158 input.seekg(offset10,ios::beg);
159 input.read((
char*)&v10, 4);
168 double bottom = (v00 + (v01 - v00)*tLat);
169 double top = (v10 + (v11 - v10)*tLat);
170 result = bottom + (top - bottom)*tLon;
std::basic_ifstream< char > ifstream
Class for char input file streams.
double nan()
Method to return ieee floating point double precision NAN.
ossimByteOrder getSystemEndianType() const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
◆ headerSize()
int ossimGeoidNgsHeader::headerSize |
( |
| ) |
const |
|
inline |
◆ initialize()
Definition at line 44 of file ossimGeoidNgsHeader.cpp.
References ossim::byteOrder(), ossimString::c_str(), cols(), FLT_EPSILON, ossimEndian::getSystemEndianType(), rows(), ossimEndian::swap(), theByteOrder, theCols, theDataType, theFilename, theLatDelta, theLonDelta, theRows, theSouthernMostLatitude, and theWesternMostLongitude.
Referenced by ossimGeoidNgs::addFile(), and ossimGeoidNgsHeader().
56 double latOrigin = 0.0;
57 double lonOrigin = 0.0;
58 double latSpacing = 0.0;
59 double lonSpacing = 0.0;
64 input.read((
char*)&latOrigin, 8);
65 input.read((
char*)&lonOrigin, 8);
66 input.read((
char*)&latSpacing, 8);
67 input.read((
char*)&lonSpacing, 8);
68 input.read((
char*)&
rows, 4);
69 input.read((
char*)&
cols, 4);
70 input.read((
char*)&type, 4);
76 endian.
swap(latOrigin);
77 endian.
swap(lonOrigin);
78 endian.
swap(latSpacing);
79 endian.
swap(lonSpacing);
std::basic_ifstream< char > ifstream
Class for char input file streams.
OSSIM_DLL ossimByteOrder byteOrder()
ossimByteOrder getSystemEndianType() const
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
◆ latDelta()
double ossimGeoidNgsHeader::latDelta |
( |
| ) |
const |
|
inline |
◆ lonDelta()
double ossimGeoidNgsHeader::lonDelta |
( |
| ) |
const |
|
inline |
◆ pointWithin()
bool ossimGeoidNgsHeader::pointWithin |
( |
double |
lat, |
|
|
double |
lon |
|
) |
| const |
◆ rows()
int ossimGeoidNgsHeader::rows |
( |
| ) |
const |
|
inline |
◆ southernMostLat()
double ossimGeoidNgsHeader::southernMostLat |
( |
| ) |
const |
|
inline |
◆ westernMostLon()
double ossimGeoidNgsHeader::westernMostLon |
( |
| ) |
const |
|
inline |
◆ operator<<
◆ theByteOrder
◆ theCols
int ossimGeoidNgsHeader::theCols |
|
private |
◆ theDataType
int ossimGeoidNgsHeader::theDataType |
|
private |
◆ theFilename
◆ theLatDelta
double ossimGeoidNgsHeader::theLatDelta |
|
private |
◆ theLonDelta
double ossimGeoidNgsHeader::theLonDelta |
|
private |
◆ theRows
int ossimGeoidNgsHeader::theRows |
|
private |
◆ theSouthernMostLatitude
double ossimGeoidNgsHeader::theSouthernMostLatitude |
|
private |
◆ theWesternMostLongitude
double ossimGeoidNgsHeader::theWesternMostLongitude |
|
private |
The documentation for this class was generated from the following files: