51 const std::string& prefix)
const 53 std::string pfx = prefix;
57 out << setiosflags(ios::left)
58 << pfx << std::setw(24) <<
"CETAG:" <<
getTagName() <<
"\n" 59 << pfx << std::setw(24) <<
"CEL:" <<
getTagLength() <<
"\n" 60 << pfx << std::setw(24) <<
"ARV:" <<
getArvString() <<
"\n" 61 << pfx << std::setw(24) <<
"BRV:" <<
getBrvString() <<
"\n" 62 << pfx << std::setw(24) <<
"LSO:" <<
getLsoString() <<
"\n" 63 << pfx << std::setw(24) <<
"PSO:" <<
getPsoString() <<
"\n";
98 if ( (arv >= 2) && (arv <= 999999999) )
109 if ( deltaLon > 0.0 )
128 result = 360.0 / brv;
146 if ( (brv >= 2) && (brv <= 999999999) )
158 if ( deltaLat > 0.0 )
184 if ( (lso >= -180.0) && (lso <= 180.0) )
189 s << std::left << std::showpos << std::fixed
215 if ( (pso >= -180.0) && (pso <= 180.0) )
220 s << std::left << std::showpos << std::fixed
virtual void writeStream(ossim::ostream &out)
Write method.
virtual const std::string & getTagName() const
This will return the name of the registered tag for this user defined header.
std::basic_ostringstream< char > ostringstream
Class for char output memory streams.
std::string getLsoString() const
Gets the LSO field.
ossim_float64 getDegreesPerPixelLon() const
Gets degrees per pixel in lonitude direction from BRV field.
RTTI_DEF1(ossimNitfGeolobTag, "ossimNitfGeolobTag", ossimNitfRegisteredTag)
std::string getBrvString() const
Gets the BRV field.
std::string getArvString() const
Gets the ARV field.
ossim_uint32 getBrv() const
Gets the BRV field.
ossim_uint32 toUInt32() const
ossim_float64 getPso() const
Gets the PSO field(Latitude Origin).
std::string getPsoString() const
Gets the PSO field.
virtual ossim_uint32 getTagLength() const
Returns the length in bytes of the tag from the CEL or REL field.
virtual void parseStream(ossim::istream &in)
Parse method.
void setDegreesPerPixelLon(const ossim_float64 &deltaLon)
Sets the ARV field from decimal degrees per pixel longitude.
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.
ossimNitfGeolobTag()
default constructor
unsigned int ossim_uint32
ossim_float64 toFloat64() const
void setLso(const ossim_float64 &lso)
Sets the LSO field(Longitude Origin).
ossim_float64 getLso() const
Gets the LSO field(Longitude Origin).
void setBrv(ossim_uint32 brv)
Sets the BRV field.
std::basic_istream< char > istream
Base class for char input streams.
void setPso(const ossim_float64 &pso)
Sets the PSO field(Latitude Origin).
void setDegreesPerPixelLat(const ossim_float64 &deltaLat)
Sets the BRV field from decimal degrees per pixel latitude.
ossim_float64 getDegreesPerPixelLat() const
Gets degrees per pixel in latitude direction from BRV field.
void setArv(ossim_uint32 arv)
Sets the ARV field.
ossim_uint32 getArv() const
Gets the ARV field.
std::basic_ostream< char > ostream
Base class for char output streams.