43 theMultipleAccuracy(),
137 std::vector<ossimString>& propertyNames)
const 139 propertyNames.push_back(
ossimString(
"dted_uhl_record"));
173 <<
"FATAL ossimDtedUhl::degreesFromString: " 174 <<
"Null pointer passed to method!" << std::endl;
181 <<
"FATAL ossimDtedUhl::decimalDegreesFromString:" 182 <<
"String not big enough!" << std::endl;
186 double d = ((str[0]-
'0')*100 + (str[1]-
'0')*10 + (str[2]-
'0') +
187 (str[3]-
'0')/6.0 + (str[4]-
'0')/60.0 +
188 (str[5]-
'0')/360.0 + (str[6]-
'0')/3600.0);
190 if ( (str[7] ==
'S') || (str[7] ==
's') ||
191 (str[7] ==
'W') || (str[7] ==
'w') )
205 <<
"FATAL ossimDtedUhl::decimalDegreesFromString: " 206 <<
"Null pointer passed to method!" << std::endl;
210 return atof(str) / 36000.0;
254 return uhl.
print(out, prefix);
258 const std::string& prefix)
const 260 std::string pfx = prefix;
263 out << setiosflags(ios::left)
264 << pfx << setw(28) <<
"recognition_sentinel:" <<
theRecSen <<
"\n" 265 << pfx << setw(28) <<
"lon_origin:" <<
theLonOrigin <<
"\n" 266 << pfx << setw(28) <<
"lat_origin:" <<
theLatOrigin <<
"\n" 269 << pfx << setw(28) <<
"absolute_le:" <<
theAbsoluteLE <<
"\n" 271 << pfx << setw(28) <<
"number_of_lat_points:" <<
theNumLatPoints <<
"\n" 272 << pfx << setw(28) <<
"number_of_lon_lines:" <<
theNumLonLines <<
"\n" 273 << pfx << setw(28) <<
"multiple_accuracy:" ossim_int32 mulitpleAccuracy() const
double latInterval() const
ossimString recognitionSentinel() const
double degreesFromString(const char *str) const
char theMultipleAccuracy[FIELD12_SIZE+1]
char theAbsoluteLE[FIELD7_SIZE+1]
ossimString securityCode() const
static const ossimErrorCode OSSIM_ERROR
std::ostream & print(std::ostream &out, const std::string &prefix) const
print method that outputs a key/value type format adding prefix to keys.
ossim_int32 numLatPoints() const
char theRecSen[FIELD1_SIZE+1]
void getPropertyNames(std::vector< ossimString > &propertyNames) const
Adds this class's properties to list.
virtual void clearErrorStatus() const
char theNumLatPoints[FIELD11_SIZE+1]
std::ostream & operator<<(std::ostream &out, const ossimDtedUhl &uhl)
ossim_int32 stopOffset() const
char theField2[FIELD2_SIZE+1]
char theField9[FIELD9_SIZE+1]
ossimErrorCode theErrorStatus
std::basic_istream< char > istream
Base class for char input streams.
ossim_int32 theStartOffset
ossim_int32 startOffset() const
char theLonOrigin[FIELD3_SIZE+1]
char theLatOrigin[FIELD4_SIZE+1]
char theLatInterval[FIELD6_SIZE+1]
double spacingFromString(const char *str) const
void parse(std::istream &in)
ossim_int32 theStopOffset
const ossimDtedUhl & operator=(const ossimDtedUhl &rhs)
char theLonInterval[FIELD5_SIZE+1]
ossim_int32 numLonLines() const
ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
Gets a property for name.
char theNumLonLines[FIELD10_SIZE+1]
double absoluteLE() const
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
double lonInterval() const
char theSecurityCode[FIELD8_SIZE+1]
std::basic_ostream< char > ostream
Base class for char output streams.