17 <<
"rows: " << data.
theRows << endl
18 <<
"cols: " << data.
theCols << endl
28 theSouthernMostLatitude(0.0),
29 theWesternMostLongitude(0.0),
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);
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.
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...
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
std::basic_ostream< char > ostream
Base class for char output streams.