96 const std::string& prefix)
const 98 std::string pfx = prefix;
112 out << setiosflags(ios::left)
113 << pfx << std::setw(24) <<
"CETAG:" <<
getTagName() <<
"\n" 114 << pfx << std::setw(24) <<
"CEL:" <<
getTagLength() <<
"\n" 116 << pfx << std::setw(24) <<
"N_GRAY:" <<
theNGray <<
"\n" 117 << pfx << std::setw(24) <<
"L_LINES:" <<
theLLines <<
"\n" 119 << pfx << std::setw(24) <<
"SHADOW_ANGLE:" <<
theShadowAngle <<
"\n" 120 << pfx << std::setw(24) <<
"FIELD_6:" <<
theField6 <<
"\n" 121 << pfx << std::setw(24) <<
"FRLC_LOC:" <<
theFrlcLoc <<
"\n" 122 << pfx << std::setw(24) <<
"LRLC_LOC:" <<
theLrlcLoc <<
"\n" 123 << pfx << std::setw(24) <<
"LRFC_LOC:" <<
theLrfcLoc <<
"\n" 124 << pfx << std::setw(24) <<
"FRFC_LOC:" <<
theFrfcLoc <<
"\n" 125 << pfx << std::setw(24) <<
"FIELD_11:" <<
theField11 <<
"\n" 126 << pfx << std::setw(24) <<
"upper left:" << ulPt <<
"\n" 127 << pfx << std::setw(24) <<
"upper right:" << urPt <<
"\n" 128 << pfx << std::setw(24) <<
"lower right:" << lrPt <<
"\n" 129 << pfx << std::setw(24) <<
"lower left:" << llPt <<
"\n";
136 if ( (block > 0) && (block < 100) )
152 if (grayCount < 100000)
282 if (locationString.
size() != 21)
return;
284 std::string s = locationString;
286 std::string lat(s, 0, 10);
287 std::string lon(s, 10, 11);
289 if ( (lat[0] ==
'N') || (lat[0] ==
'S') )
293 latStream << lat.substr(0, 3) <<
" " << lat.substr(3, 2)
294 <<
" " << lat.substr(5);
295 lat = latStream.str();
307 if ( (lon[0] ==
'E') || (lon[0] ==
'W') )
311 lonStream << lon.substr(0, 4) <<
" " << lon.substr(4, 2)
312 <<
" " << lon.substr(6);
313 lon = lonStream.str();
virtual void parseStream(ossim::istream &in)
Parse method.
virtual const std::string & getTagName() const
This will return the name of the registered tag for this user defined header.
char theFrlcLoc[FRLC_LOC_SIZE+1]
FIELD: FRLC_LOC.
char theFrfcLoc[FRFC_LOC_SIZE+1]
FIELD: FRFC_LOC.
char theNGray[N_GRAY_SIZE+1]
FIELD: N_GRAY.
void setFrlcLoc(const ossimDpt &pt)
Convert latitude and logitude to theFrlcLoc string.
virtual std::ostream & print(std::ostream &out, const std::string &prefix) const
Print method that outputs a key/value type format adding prefix to keys.
std::basic_ostringstream< char > ostringstream
Class for char output memory streams.
ossimString getFrlcLoc() const
ossimString getLayoverAngle() const
ossimString getBlockInstance() const
ossimString getFrfcLoc() const
void setLrfcLoc(const ossimDpt &pt)
Convert latitude and logitude to theLrfcLoc string.
virtual void clearFields()
Clears all string fields within the record to some default nothingness.
void setNGray(ossim_uint32 grayCount)
char theField6[FIELD_6_SIZE+1]
FIELD: FIELD_6.
void setLrlcLoc(const ossimDpt &pt)
Convert latitude and logitude to theLrlcLoc string.
void setLayoverAngle(ossim_uint32 angle)
ossimString getNGray() const
void setBlockInstance(ossim_uint32 block)
char theLrlcLoc[LRLC_LOC_SIZE+1]
FIELD: LRLC_LOC.
char theShadowAngle[SHADOW_ANGLE_SIZE+1]
FIELD: SHADOW_ANGLE.
ossimNitfBlockaTag()
default constructor
char theLLines[L_LINES_SIZE+1]
FIELD: L_LINES.
ossimString getLrfcLoc() const
ossimString getLLines() const
virtual ossim_uint32 getTagLength() const
Returns the length in bytes of the tag from the CEL or REL field.
char theLayoverAngle[LAYOVER_ANGLE_SIZE+1]
FIELD: LAYOVER_ANGLE.
static ossimString convertToDdLatLonLocString(const ossimDpt &pt, ossim_uint32 precision)
Converts pt to a decimal degrees latitude longitude location string.
void setFrfcLoc(const ossimDpt &pt)
Convert latitude and logitude to theFrfcLoc string.
std::string::size_type size() const
unsigned int ossim_uint32
bool setDegrees(const std::string &value)
setDegrees(char*).
char theLrfcLoc[LRFC_LOC_SIZE+1]
FIELD: LRFC_LOC.
double getDegrees() const
ossimString getLrlcLoc() const
void setLLines(ossim_uint32 lines)
static ossimString convertToUIntString(ossim_uint32 aValue, ossim_uint32 size)
This method takes a value and converts to a string of size with with a '0' fill.
char theBlockInstance[BLOCK_INSTANCE_SIZE+1]
FIELD: BLOCK_INSTANCE.
ossimString getShadowAngle() const
std::basic_istream< char > istream
Base class for char input streams.
void setShadowAngle(ossim_uint32 angle)
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
static ossimString convertToIntString(ossim_int32 aValue, ossim_uint32 size)
Just like convertToUIntString only takes a signed value.
char theField11[FIELD_11_SIZE+1]
FIELD: FIELD_11.
void converLocStringToPt(const ossimString &locationString, ossimDpt &pt) const
Parses location string and initializes pt with result.
virtual void writeStream(ossim::ostream &out)
Write method.
RTTI_DEF1(ossimNitfBlockaTag, "ossimNitfBlockaTag", ossimNitfRegisteredTag)
std::basic_ostream< char > ostream
Base class for char output streams.