OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimDtedUhl.h>
Public Types | |
enum | { UHL_LENGTH = 80, UHL_LON_ORIGIN = 5, UHL_LAT_ORIGIN = 13, UHL_LON_INTERVAL = 21, UHL_LAT_INTERVAL = 25, UHL_ABSOLUTE_LE = 29, UHL_SECURITY_CODE = 33, UHL_REFERENCE_NUM = 33, UHL_NUM_LON_LINES = 48, UHL_NUM_LAT_LINES = 52, UHL_MULTIPLE_ACC = 56, UHL_RESERVED = 57, FIELD1_SIZE = 3, FIELD2_SIZE = 1, FIELD3_SIZE = 8, FIELD4_SIZE = 8, FIELD5_SIZE = 4, FIELD6_SIZE = 4, FIELD7_SIZE = 4, FIELD8_SIZE = 3, FIELD9_SIZE = 12, FIELD10_SIZE = 4, FIELD11_SIZE = 4, FIELD12_SIZE = 1, FIELD13_SIZE = 24 } |
Public Member Functions | |
ossimDtedUhl () | |
ossimDtedUhl (std::shared_ptr< ossim::istream > &str, ossim_int64 offset=0) | |
ossimString | recognitionSentinel () const |
double | lonOrigin () const |
double | latOrigin () const |
double | lonInterval () const |
double | latInterval () const |
double | absoluteLE () const |
ossimString | securityCode () const |
ossim_int32 | numLonLines () const |
ossim_int32 | numLatPoints () const |
ossim_int32 | mulitpleAccuracy () const |
ossim_int32 | startOffset () const |
ossim_int32 | stopOffset () const |
std::ostream & | print (std::ostream &out, const std::string &prefix) const |
print method that outputs a key/value type format adding prefix to keys. More... | |
void | parse (std::istream &in) |
ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
Gets a property for name. More... | |
void | getPropertyNames (std::vector< ossimString > &propertyNames) const |
Adds this class's properties to list. More... | |
![]() | |
ossimErrorStatusInterface () | |
virtual | ~ossimErrorStatusInterface () |
virtual ossimErrorCode | getErrorStatus () const |
virtual ossimString | getErrorStatusString () const |
virtual void | setErrorStatus (ossimErrorCode error_status) const |
virtual void | setErrorStatus () const |
virtual void | clearErrorStatus () const |
bool | hasError () const |
virtual std::ostream & | print (std::ostream &out) const |
Outputs theErrorStatus as an ossimErrorCode and an ossimString. More... | |
Private Member Functions | |
ossimDtedUhl (const ossimDtedUhl &source) | |
const ossimDtedUhl & | operator= (const ossimDtedUhl &rhs) |
double | degreesFromString (const char *str) const |
double | spacingFromString (const char *str) const |
Private Attributes | |
char | theRecSen [FIELD1_SIZE+1] |
char | theField2 [FIELD2_SIZE+1] |
char | theLonOrigin [FIELD3_SIZE+1] |
char | theLatOrigin [FIELD4_SIZE+1] |
char | theLonInterval [FIELD5_SIZE+1] |
char | theLatInterval [FIELD6_SIZE+1] |
char | theAbsoluteLE [FIELD7_SIZE+1] |
char | theSecurityCode [FIELD8_SIZE+1] |
char | theField9 [FIELD9_SIZE+1] |
char | theNumLonLines [FIELD10_SIZE+1] |
char | theNumLatPoints [FIELD11_SIZE+1] |
char | theMultipleAccuracy [FIELD12_SIZE+1] |
ossim_int32 | theStartOffset |
ossim_int32 | theStopOffset |
Friends | |
OSSIM_DLL std::ostream & | operator<< (std::ostream &out, const ossimDtedUhl &uhl) |
Additional Inherited Members | |
![]() | |
ossimErrorCode | theErrorStatus |
Definition at line 26 of file ossimDtedUhl.h.
anonymous enum |
Definition at line 32 of file ossimDtedUhl.h.
ossimDtedUhl::ossimDtedUhl | ( | ) |
Definition at line 26 of file ossimDtedUhl.cpp.
ossimDtedUhl::ossimDtedUhl | ( | std::shared_ptr< ossim::istream > & | str, |
ossim_int64 | offset = 0 |
||
) |
Definition at line 31 of file ossimDtedUhl.cpp.
References ossimErrorCodes::OSSIM_ERROR, parse(), and ossimErrorStatusInterface::theErrorStatus.
|
private |
Definition at line 282 of file ossimDtedUhl.cpp.
double ossimDtedUhl::absoluteLE | ( | ) | const |
|
private |
Definition at line 167 of file ossimDtedUhl.cpp.
References ossimNotify(), and ossimNotifyLevel_FATAL.
Referenced by latOrigin(), and lonOrigin().
ossimRefPtr< ossimProperty > ossimDtedUhl::getProperty | ( | const ossimString & | name | ) | const |
Gets a property for name.
name | Property name to get. |
Definition at line 129 of file ossimDtedUhl.cpp.
Referenced by ossimDtedInfo::getProperty().
void ossimDtedUhl::getPropertyNames | ( | std::vector< ossimString > & | propertyNames | ) | const |
Adds this class's properties to list.
propertyNames | list to append to. |
Definition at line 136 of file ossimDtedUhl.cpp.
Referenced by ossimDtedInfo::getProperty().
double ossimDtedUhl::latInterval | ( | ) | const |
Definition at line 162 of file ossimDtedUhl.cpp.
References spacingFromString(), and theLatInterval.
Referenced by ossimDtedTileSource::getImageGeometry().
double ossimDtedUhl::latOrigin | ( | ) | const |
Definition at line 152 of file ossimDtedUhl.cpp.
References degreesFromString(), and theLatOrigin.
Referenced by ossimDtedTileSource::getImageGeometry().
double ossimDtedUhl::lonInterval | ( | ) | const |
Definition at line 157 of file ossimDtedUhl.cpp.
References spacingFromString(), and theLonInterval.
Referenced by ossimDtedTileSource::getImageGeometry().
double ossimDtedUhl::lonOrigin | ( | ) | const |
Definition at line 147 of file ossimDtedUhl.cpp.
References degreesFromString(), and theLonOrigin.
Referenced by ossimDtedTileSource::getImageGeometry().
ossim_int32 ossimDtedUhl::mulitpleAccuracy | ( | ) | const |
Definition at line 233 of file ossimDtedUhl.cpp.
References theMultipleAccuracy.
ossim_int32 ossimDtedUhl::numLatPoints | ( | ) | const |
Definition at line 228 of file ossimDtedUhl.cpp.
References theNumLatPoints.
Referenced by ossimDtedTileSource::getImageGeometry().
ossim_int32 ossimDtedUhl::numLonLines | ( | ) | const |
|
private |
Definition at line 286 of file ossimDtedUhl.cpp.
void ossimDtedUhl::parse | ( | std::istream & | in | ) |
Definition at line 62 of file ossimDtedUhl.cpp.
References ossimErrorStatusInterface::clearErrorStatus(), FIELD10_SIZE, FIELD11_SIZE, FIELD12_SIZE, FIELD13_SIZE, FIELD1_SIZE, FIELD2_SIZE, FIELD3_SIZE, FIELD4_SIZE, FIELD5_SIZE, FIELD6_SIZE, FIELD7_SIZE, FIELD8_SIZE, FIELD9_SIZE, ossimErrorCodes::OSSIM_ERROR, theAbsoluteLE, ossimErrorStatusInterface::theErrorStatus, theField2, theField9, theLatInterval, theLatOrigin, theLonInterval, theLonOrigin, theMultipleAccuracy, theNumLatPoints, theNumLonLines, theRecSen, theSecurityCode, theStartOffset, theStopOffset, and UHL_LENGTH.
Referenced by ossimDtedInfo::open(), and ossimDtedUhl().
std::ostream & ossimDtedUhl::print | ( | std::ostream & | out, |
const std::string & | prefix | ||
) | const |
print method that outputs a key/value type format adding prefix to keys.
out | String to output to. |
prefix | This will be prepended to key. e.g. Where prefix = "nitf." and key is "file_name" key becomes: "nitf.file_name:" |
Definition at line 257 of file ossimDtedUhl.cpp.
References theAbsoluteLE, theLatInterval, theLatOrigin, theLonInterval, theLonOrigin, theMultipleAccuracy, theNumLatPoints, theNumLonLines, theRecSen, theSecurityCode, theStartOffset, and theStopOffset.
Referenced by operator<<(), and ossimDtedInfo::print().
ossimString ossimDtedUhl::recognitionSentinel | ( | ) | const |
ossimString ossimDtedUhl::securityCode | ( | ) | const |
|
private |
Definition at line 199 of file ossimDtedUhl.cpp.
References ossimNotify(), and ossimNotifyLevel_FATAL.
Referenced by latInterval(), and lonInterval().
ossim_int32 ossimDtedUhl::startOffset | ( | ) | const |
ossim_int32 ossimDtedUhl::stopOffset | ( | ) | const |
|
friend |
Definition at line 251 of file ossimDtedUhl.cpp.
|
private |
Definition at line 121 of file ossimDtedUhl.h.
Referenced by absoluteLE(), parse(), and print().
|
private |
Definition at line 116 of file ossimDtedUhl.h.
Referenced by parse().
|
private |
Definition at line 123 of file ossimDtedUhl.h.
Referenced by parse().
|
private |
Definition at line 120 of file ossimDtedUhl.h.
Referenced by latInterval(), parse(), and print().
|
private |
Definition at line 118 of file ossimDtedUhl.h.
Referenced by latOrigin(), parse(), and print().
|
private |
Definition at line 119 of file ossimDtedUhl.h.
Referenced by lonInterval(), parse(), and print().
|
private |
Definition at line 117 of file ossimDtedUhl.h.
Referenced by lonOrigin(), parse(), and print().
|
private |
Definition at line 126 of file ossimDtedUhl.h.
Referenced by mulitpleAccuracy(), parse(), and print().
|
private |
Definition at line 125 of file ossimDtedUhl.h.
Referenced by numLatPoints(), parse(), and print().
|
private |
Definition at line 124 of file ossimDtedUhl.h.
Referenced by numLonLines(), parse(), and print().
|
private |
Definition at line 115 of file ossimDtedUhl.h.
Referenced by parse(), print(), and recognitionSentinel().
|
private |
Definition at line 122 of file ossimDtedUhl.h.
Referenced by parse(), print(), and securityCode().
|
private |
Definition at line 128 of file ossimDtedUhl.h.
Referenced by parse(), print(), and startOffset().
|
private |
Definition at line 129 of file ossimDtedUhl.h.
Referenced by parse(), print(), and stopOffset().