OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Protected Attributes | List of all members
ossimNitfCsexraTag Class Reference

#include <ossimNitfCsexraTag.h>

Inheritance diagram for ossimNitfCsexraTag:
ossimNitfRegisteredTag ossimObject ossimPropertyInterface ossimReferenced

Public Member Functions

 ossimNitfCsexraTag ()
 default constructor More...
 
virtual ~ossimNitfCsexraTag ()
 destructor More...
 
virtual void parseStream (std::istream &in)
 Method to parse data from stream. More...
 
virtual void writeStream (std::ostream &out)
 Method to write data to stream. More...
 
virtual void clearFields ()
 Method to clear all fields including null terminating. More...
 
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. More...
 
ossimString getSensor () const
 Get the SENSOR field. More...
 
ossimString getTimeFirstLineImage () const
 Get the TIME_FIRST_LINE_IMAGE field. More...
 
ossimString getTimeImageDuration () const
 Get the TIME_IMAGE_DURATION field. More...
 
ossimString getMaxGsd () const
 Get the MAX_GSDfield. More...
 
ossimString getAlongScanGsd () const
 Get the ALONG_SCAN_GSD field. More...
 
ossimString getCrossScanGsd () const
 Get the CROSS_SCAN_GSD field. More...
 
ossimString getGeoMeanGsd () const
 Get the GEO_MEAN_GSD field. More...
 
ossimString getAlongScanVerticalGsd () const
 Get the A_S_VERT_GSD field. More...
 
ossimString getCrossScanVerticalGsd () const
 Get the C_S_VERT_GSD field. More...
 
ossimString getGeoMeanVerticalGsd () const
 Get the GEO_MEAN_VERT_GSD field. More...
 
ossimString getGeoBetaAngle () const
 Get the GEO_BETA_ANGLEfield. More...
 
ossimString getDynamicRange () const
 Get the DYNAMIC_RANGE field. More...
 
ossimString getNumLines () const
 Get the NUM_LINES field. More...
 
ossimString getNumSamples () const
 Get the NUM_SAMPLES field. More...
 
ossimString getAngleToNorth () const
 Get the ANGLE_TO_NORTH field. More...
 
ossimString getObliquityAngle () const
 Get the OBLIQUITY_ANGLE field. More...
 
ossimString getAzimuthOfObliquity () const
 Get the AZ_OF_OBLIQUITY field. More...
 
ossimString getGroundCover () const
 Get the GRD_COVER field. More...
 
ossimString getSnowDepth () const
 Get the SNOW_DEPTH_CAT field. More...
 
ossimString getSunAzimuth () const
 Get the SUN_AZIMUTH field. More...
 
ossimString getSunElevation () const
 Get the SUN_ELEVATION field. More...
 
ossimString getPredictedNiirs () const
 Get the PREDICTED_NIIRS field. More...
 
ossimString getCE90 () const
 Get the CIRCL_ERR field. More...
 
ossimString getLE90 () const
 Get the LINEAR_ERR field. More...
 
- Public Member Functions inherited from ossimNitfRegisteredTag
 ossimNitfRegisteredTag ()
 default constructor More...
 
 ossimNitfRegisteredTag (const std::string &tagName, ossim_uint32 tagLength)
 Constructor that takes name and size. More...
 
virtual ~ossimNitfRegisteredTag ()
 destructor More...
 
virtual std::string getRegisterTagName () const
 This will return the name of the registered tag for this user defined header. More...
 
virtual const std::string & getTagName () const
 This will return the name of the registered tag for this user defined header. More...
 
virtual void setTagName (const std::string &tagName)
 
virtual ossim_uint32 getSizeInBytes () const
 Returns the length in bytes of the tag from the CEL or REL field. More...
 
virtual ossim_uint32 getTagLength () const
 Returns the length in bytes of the tag from the CEL or REL field. More...
 
virtual void setTagLength (ossim_uint32 length)
 Set the tag length. More...
 
virtual void parseStream (ossim::istream &in)=0
 This will allow the user defined data to parse the stream. More...
 
virtual void writeStream (ossim::ostream &out)=0
 
virtual void setProperty (ossimRefPtr< ossimProperty > property)
 
virtual ossimRefPtr< ossimPropertygetProperty (const ossimString &name) const
 
virtual void getPropertyNames (std::vector< ossimString > &propertyNames) const
 
virtual void getMetadata (ossimKeywordlist &kwl, const char *prefix=0) const
 Default interface to populate keyword list with metadata. More...
 
virtual bool saveState (ossimKeywordlist &kwl, const ossimString &prefix) const
 
- Public Member Functions inherited from ossimObject
 ossimObject ()
 
virtual ~ossimObject ()
 
virtual ossimObjectdup () const
 
virtual ossimString getShortName () const
 
virtual ossimString getLongName () const
 
virtual ossimString getDescription () const
 
virtual ossimString getClassName () const
 
virtual RTTItypeid getType () const
 
virtual bool canCastTo (ossimObject *obj) const
 
virtual bool canCastTo (const RTTItypeid &id) const
 
virtual bool canCastTo (const ossimString &parentClassName) const
 
virtual bool saveState (ossimKeywordlist &kwl, const char *prefix=0) const
 
virtual bool loadState (const ossimKeywordlist &kwl, const char *prefix=0)
 
virtual std::ostream & print (std::ostream &out) const
 Generic print method. More...
 
virtual bool isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const
 
virtual void accept (ossimVisitor &visitor)
 
- Public Member Functions inherited from ossimReferenced
 ossimReferenced ()
 
 ossimReferenced (const ossimReferenced &)
 
ossimReferencedoperator= (const ossimReferenced &)
 
void ref () const
 increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unref () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unref_nodelete () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
int referenceCount () const
 
- Public Member Functions inherited from ossimPropertyInterface
 ossimPropertyInterface ()
 
virtual ~ossimPropertyInterface ()
 
virtual void setProperty (const ossimString &name, const ossimString &value)
 
virtual ossimString getPropertyValueAsString (const ossimString &name) const
 
void getPropertyList (std::vector< ossimRefPtr< ossimProperty > > &propertyList) const
 
void setProperties (std::vector< ossimRefPtr< ossimProperty > > &propertyList)
 

Protected Attributes

char theSensor [7]
 FIELD: SENSOR. More...
 
char theTileFirstLine [13]
 FIELD: TIME_FIRST_LINE_IMAGE. More...
 
char theImageTimeDuration [13]
 FIELD: TIME_IMAGE_DURATION. More...
 
char theMaxGsd [6]
 FIELD: MAX_GSD. More...
 
char theAlongScanGsd [6]
 FIELD: ALONG_SCAN_GSD. More...
 
char theCrossScanGsd [6]
 FIELD: CROSS_SCAN_GSD. More...
 
char theGeoMeanGsd [6]
 FIELD: GEO_MEAN_GSD. More...
 
char theAlongScanVertGsd [6]
 FIELD: A_S_VERT_GSD. More...
 
char theCrossScanVertGsd [6]
 FIELD: C_S_VERT_GSD. More...
 
char theGeoMeanVertGsd [6]
 FIELD: GEO_MEAN_VERT_GSD. More...
 
char theGeoBetaAngle [6]
 FIELD: GEO_BETA_ANGLE. More...
 
char theDynamicRange [6]
 FIELD: DYNAMIC_RANGE. More...
 
char theLine [8]
 FIELD: NUM_LINES. More...
 
char theSamples [6]
 FIELD: NUM_SAMPLES. More...
 
char theAngleToNorth [8]
 FIELD: ANGLE_TO_NORTH. More...
 
char theObliquityAngle [7]
 FIELD: OBLIQUITY_ANGLE. More...
 
char theAzOfObliquity [8]
 FIELD: AZ_OF_OBLIQUITY. More...
 
char theGrdCover [2]
 FIELD: GRD_COVER. More...
 
char theSnowDepthCategory [2]
 FIELD: SNOW_DEPTH_CAT. More...
 
char theSunAzimuth [8]
 FIELD: SUN_AZIMUTH. More...
 
char theSunElevation [8]
 FIELD: SUN_ELEVATION. More...
 
char thePredictedNiirs [4]
 FIELD: PREDICTED_NIIRS. More...
 
char theCircularError [4]
 FIELD: CIRCL_ERR. More...
 
char theLinearError [4]
 FIELD: LINEAR_ERR. More...
 
- Protected Attributes inherited from ossimNitfRegisteredTag
std::string m_tagName
 
ossim_uint32 m_tagLength
 

Additional Inherited Members

- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 

Detailed Description

Definition at line 22 of file ossimNitfCsexraTag.h.

Constructor & Destructor Documentation

◆ ossimNitfCsexraTag()

ossimNitfCsexraTag::ossimNitfCsexraTag ( )

default constructor

Definition at line 28 of file ossimNitfCsexraTag.cpp.

References clearFields().

29  : ossimNitfRegisteredTag(std::string("CSEXRA"), 132)
30 {
31  clearFields();
32 }
ossimNitfRegisteredTag()
default constructor
virtual void clearFields()
Method to clear all fields including null terminating.

◆ ~ossimNitfCsexraTag()

ossimNitfCsexraTag::~ossimNitfCsexraTag ( )
virtual

destructor

Definition at line 34 of file ossimNitfCsexraTag.cpp.

35 {
36 }

Member Function Documentation

◆ clearFields()

void ossimNitfCsexraTag::clearFields ( )
virtual

Method to clear all fields including null terminating.

Definition at line 96 of file ossimNitfCsexraTag.cpp.

References theAlongScanGsd, theAlongScanVertGsd, theAngleToNorth, theAzOfObliquity, theCircularError, theCrossScanGsd, theCrossScanVertGsd, theDynamicRange, theGeoBetaAngle, theGeoMeanGsd, theGeoMeanVertGsd, theGrdCover, theImageTimeDuration, theLine, theLinearError, theMaxGsd, theObliquityAngle, thePredictedNiirs, theSamples, theSensor, theSnowDepthCategory, theSunAzimuth, theSunElevation, and theTileFirstLine.

Referenced by ossimNitfCsexraTag(), and parseStream().

97 {
98  //---
99  // No attempt made to set to defaults.
100  // BCS-N's to '0's, BCS-A's to ' '(spaces)
101  //---
102 
103  memset(theSensor, ' ', 6);
104  memset(theTileFirstLine, 0, 12);
105  memset(theImageTimeDuration, 0, 12);
106  memset(theMaxGsd, 0, 5);
107  memset(theAlongScanGsd, ' ', 5);
108  memset(theCrossScanGsd, ' ', 5);
109  memset(theGeoMeanGsd, ' ', 5);
110  memset(theAlongScanVertGsd, ' ', 5);
111  memset(theCrossScanVertGsd, ' ', 5);
112  memset(theGeoMeanVertGsd, ' ', 5);
113  memset(theGeoBetaAngle, ' ', 5);
114  memset(theDynamicRange, 0, 5);
115  memset(theLine, 0, 7);
116  memset(theSamples, 0, 5);
117  memset(theAngleToNorth, 0, 7);
118  memset(theObliquityAngle, 0, 6);
119  memset(theAzOfObliquity, 0, 7);
120  memset(theGrdCover, 0, 1);
121  memset(theSnowDepthCategory, 0, 1);
122  memset(theSunAzimuth, 0, 7);
123  memset(theSunElevation, 0, 7);
124  memset(thePredictedNiirs, ' ', 3);
125  memset(theCircularError, 0, 3);
126  memset(theLinearError, 0, 3);
127 
128  theSensor[6] = '\0';
129  theTileFirstLine[12] = '\0';
130  theImageTimeDuration[12] = '\0';
131  theMaxGsd[5] = '\0';
132  theAlongScanGsd[5] = '\0';
133  theCrossScanGsd[5] = '\0';
134  theGeoMeanGsd[5] = '\0';
135  theAlongScanVertGsd[5] = '\0';
136  theCrossScanVertGsd[5] = '\0';
137  theGeoMeanVertGsd[5] = '\0';
138  theGeoBetaAngle[5] = '\0';
139  theDynamicRange[5] = '\0';
140  theLine[7] = '\0';
141  theSamples[5] = '\0';
142  theAngleToNorth[7] = '\0';
143  theObliquityAngle[6] = '\0';
144  theAzOfObliquity[7] = '\0';
145  theGrdCover[1] = '\0';
146  theSnowDepthCategory[1] = '\0';
147  theSunAzimuth[7] = '\0';
148  theSunElevation[7] = '\0';
149  thePredictedNiirs[3] = '\0';
150  theCircularError[3] = '\0';
151  theLinearError[3] = '\0';
152 
153 }
char theSunAzimuth[8]
FIELD: SUN_AZIMUTH.
char theGrdCover[2]
FIELD: GRD_COVER.
char theLine[8]
FIELD: NUM_LINES.
char theCircularError[4]
FIELD: CIRCL_ERR.
char theGeoMeanGsd[6]
FIELD: GEO_MEAN_GSD.
char theCrossScanGsd[6]
FIELD: CROSS_SCAN_GSD.
char theSensor[7]
FIELD: SENSOR.
char theAzOfObliquity[8]
FIELD: AZ_OF_OBLIQUITY.
char theAlongScanGsd[6]
FIELD: ALONG_SCAN_GSD.
char theObliquityAngle[7]
FIELD: OBLIQUITY_ANGLE.
char theImageTimeDuration[13]
FIELD: TIME_IMAGE_DURATION.
char theSamples[6]
FIELD: NUM_SAMPLES.
char theSnowDepthCategory[2]
FIELD: SNOW_DEPTH_CAT.
char theDynamicRange[6]
FIELD: DYNAMIC_RANGE.
char thePredictedNiirs[4]
FIELD: PREDICTED_NIIRS.
char theCrossScanVertGsd[6]
FIELD: C_S_VERT_GSD.
char theAlongScanVertGsd[6]
FIELD: A_S_VERT_GSD.
char theMaxGsd[6]
FIELD: MAX_GSD.
char theLinearError[4]
FIELD: LINEAR_ERR.
char theSunElevation[8]
FIELD: SUN_ELEVATION.
char theGeoBetaAngle[6]
FIELD: GEO_BETA_ANGLE.
char theGeoMeanVertGsd[6]
FIELD: GEO_MEAN_VERT_GSD.
char theTileFirstLine[13]
FIELD: TIME_FIRST_LINE_IMAGE.
char theAngleToNorth[8]
FIELD: ANGLE_TO_NORTH.

◆ getAlongScanGsd()

ossimString ossimNitfCsexraTag::getAlongScanGsd ( ) const

Get the ALONG_SCAN_GSD field.

Returns
The ALONG_SCAN_GSD field as a string.

Definition at line 239 of file ossimNitfCsexraTag.cpp.

References theAlongScanGsd.

240 {
242 }
char theAlongScanGsd[6]
FIELD: ALONG_SCAN_GSD.

◆ getAlongScanVerticalGsd()

ossimString ossimNitfCsexraTag::getAlongScanVerticalGsd ( ) const

Get the A_S_VERT_GSD field.

Returns
The A_S_VERT_GSD field as a string.

Definition at line 254 of file ossimNitfCsexraTag.cpp.

References theAlongScanVertGsd.

255 {
257 }
char theAlongScanVertGsd[6]
FIELD: A_S_VERT_GSD.

◆ getAngleToNorth()

ossimString ossimNitfCsexraTag::getAngleToNorth ( ) const

Get the ANGLE_TO_NORTH field.

Returns
The ANGLE_TO_NORTH field as a string.

Definition at line 289 of file ossimNitfCsexraTag.cpp.

References theAngleToNorth.

290 {
292 }
char theAngleToNorth[8]
FIELD: ANGLE_TO_NORTH.

◆ getAzimuthOfObliquity()

ossimString ossimNitfCsexraTag::getAzimuthOfObliquity ( ) const

Get the AZ_OF_OBLIQUITY field.

Returns
The AZ_OF_OBLIQUITY field as a string.

Definition at line 299 of file ossimNitfCsexraTag.cpp.

References theAzOfObliquity.

300 {
302 }
char theAzOfObliquity[8]
FIELD: AZ_OF_OBLIQUITY.

◆ getCE90()

ossimString ossimNitfCsexraTag::getCE90 ( ) const

Get the CIRCL_ERR field.

Returns
The CIRCL_ERR field as a string.

Definition at line 329 of file ossimNitfCsexraTag.cpp.

References theCircularError.

330 {
332 }
char theCircularError[4]
FIELD: CIRCL_ERR.

◆ getCrossScanGsd()

ossimString ossimNitfCsexraTag::getCrossScanGsd ( ) const

Get the CROSS_SCAN_GSD field.

Returns
TheCROSS_SCAN_GSD field as a string.

Definition at line 244 of file ossimNitfCsexraTag.cpp.

References theCrossScanGsd.

245 {
247 }
char theCrossScanGsd[6]
FIELD: CROSS_SCAN_GSD.

◆ getCrossScanVerticalGsd()

ossimString ossimNitfCsexraTag::getCrossScanVerticalGsd ( ) const

Get the C_S_VERT_GSD field.

Returns
The C_S_VERT_GSD field as a string.

Definition at line 259 of file ossimNitfCsexraTag.cpp.

References theCrossScanVertGsd.

260 {
262 }
char theCrossScanVertGsd[6]
FIELD: C_S_VERT_GSD.

◆ getDynamicRange()

ossimString ossimNitfCsexraTag::getDynamicRange ( ) const

Get the DYNAMIC_RANGE field.

Returns
The DYNAMIC_RANGE field as a string.

Definition at line 274 of file ossimNitfCsexraTag.cpp.

References theDynamicRange.

275 {
277 }
char theDynamicRange[6]
FIELD: DYNAMIC_RANGE.

◆ getGeoBetaAngle()

ossimString ossimNitfCsexraTag::getGeoBetaAngle ( ) const

Get the GEO_BETA_ANGLEfield.

Returns
The GEO_BETA_ANGLE field as a string.

Definition at line 269 of file ossimNitfCsexraTag.cpp.

References theGeoBetaAngle.

270 {
272 }
char theGeoBetaAngle[6]
FIELD: GEO_BETA_ANGLE.

◆ getGeoMeanGsd()

ossimString ossimNitfCsexraTag::getGeoMeanGsd ( ) const

Get the GEO_MEAN_GSD field.

Returns
The GEO_MEAN_GSD field as a string.

Definition at line 249 of file ossimNitfCsexraTag.cpp.

References theGeoMeanGsd.

250 {
251  return ossimString(theGeoMeanGsd);
252 }
char theGeoMeanGsd[6]
FIELD: GEO_MEAN_GSD.

◆ getGeoMeanVerticalGsd()

ossimString ossimNitfCsexraTag::getGeoMeanVerticalGsd ( ) const

Get the GEO_MEAN_VERT_GSD field.

Returns
The GEO_MEAN_VERT_GSD field as a string.

Definition at line 264 of file ossimNitfCsexraTag.cpp.

References theGeoMeanVertGsd.

265 {
267 }
char theGeoMeanVertGsd[6]
FIELD: GEO_MEAN_VERT_GSD.

◆ getGroundCover()

ossimString ossimNitfCsexraTag::getGroundCover ( ) const

Get the GRD_COVER field.

Returns
The GRD_COVER field as a string.

Definition at line 304 of file ossimNitfCsexraTag.cpp.

References theGrdCover.

305 {
306  return ossimString(theGrdCover);
307 }
char theGrdCover[2]
FIELD: GRD_COVER.

◆ getLE90()

ossimString ossimNitfCsexraTag::getLE90 ( ) const

Get the LINEAR_ERR field.

Returns
The LINEAR_ERR field as a string.

Definition at line 334 of file ossimNitfCsexraTag.cpp.

References theLinearError.

335 {
336  return ossimString(theLinearError);
337 }
char theLinearError[4]
FIELD: LINEAR_ERR.

◆ getMaxGsd()

ossimString ossimNitfCsexraTag::getMaxGsd ( ) const

Get the MAX_GSDfield.

Returns
The MAX_GSD field as a string.

Definition at line 234 of file ossimNitfCsexraTag.cpp.

References theMaxGsd.

235 {
236  return ossimString(theMaxGsd);
237 }
char theMaxGsd[6]
FIELD: MAX_GSD.

◆ getNumLines()

ossimString ossimNitfCsexraTag::getNumLines ( ) const

Get the NUM_LINES field.

Returns
The NUM_LINES field as a string.

Definition at line 279 of file ossimNitfCsexraTag.cpp.

References theLine.

280 {
281  return ossimString(theLine);
282 }
char theLine[8]
FIELD: NUM_LINES.

◆ getNumSamples()

ossimString ossimNitfCsexraTag::getNumSamples ( ) const

Get the NUM_SAMPLES field.

Returns
The NUM_SAMPLES field as a string.

Definition at line 284 of file ossimNitfCsexraTag.cpp.

References theSamples.

285 {
286  return ossimString(theSamples);
287 }
char theSamples[6]
FIELD: NUM_SAMPLES.

◆ getObliquityAngle()

ossimString ossimNitfCsexraTag::getObliquityAngle ( ) const

Get the OBLIQUITY_ANGLE field.

Returns
The OBLIQUITY_ANGLE field as a string.

Definition at line 294 of file ossimNitfCsexraTag.cpp.

References theObliquityAngle.

295 {
297 }
char theObliquityAngle[7]
FIELD: OBLIQUITY_ANGLE.

◆ getPredictedNiirs()

ossimString ossimNitfCsexraTag::getPredictedNiirs ( ) const

Get the PREDICTED_NIIRS field.

Returns
The PREDICTED_NIIRS field as a string.

Definition at line 324 of file ossimNitfCsexraTag.cpp.

References thePredictedNiirs.

325 {
327 }
char thePredictedNiirs[4]
FIELD: PREDICTED_NIIRS.

◆ getSensor()

ossimString ossimNitfCsexraTag::getSensor ( ) const

Get the SENSOR field.

Returns
The SENSOR field as a string.

Definition at line 219 of file ossimNitfCsexraTag.cpp.

References theSensor.

220 {
221  return ossimString(theSensor);
222 }
char theSensor[7]
FIELD: SENSOR.

◆ getSnowDepth()

ossimString ossimNitfCsexraTag::getSnowDepth ( ) const

Get the SNOW_DEPTH_CAT field.

Returns
The SNOW_DEPTH_CAT field as a string.

Definition at line 309 of file ossimNitfCsexraTag.cpp.

References theSnowDepthCategory.

310 {
312 }
char theSnowDepthCategory[2]
FIELD: SNOW_DEPTH_CAT.

◆ getSunAzimuth()

ossimString ossimNitfCsexraTag::getSunAzimuth ( ) const

Get the SUN_AZIMUTH field.

Returns
The SUN_AZIMUTH field as a string.

Definition at line 314 of file ossimNitfCsexraTag.cpp.

References theSunAzimuth.

315 {
316  return ossimString(theSunAzimuth);
317 }
char theSunAzimuth[8]
FIELD: SUN_AZIMUTH.

◆ getSunElevation()

ossimString ossimNitfCsexraTag::getSunElevation ( ) const

Get the SUN_ELEVATION field.

Returns
The SUN_ELEVATION field as a string.

Definition at line 319 of file ossimNitfCsexraTag.cpp.

References theSunElevation.

320 {
322 }
char theSunElevation[8]
FIELD: SUN_ELEVATION.

◆ getTimeFirstLineImage()

ossimString ossimNitfCsexraTag::getTimeFirstLineImage ( ) const

Get the TIME_FIRST_LINE_IMAGE field.

Returns
The TIME_FIRST_LINE_IMAGE field as a string.

Definition at line 224 of file ossimNitfCsexraTag.cpp.

References theTileFirstLine.

225 {
227 }
char theTileFirstLine[13]
FIELD: TIME_FIRST_LINE_IMAGE.

◆ getTimeImageDuration()

ossimString ossimNitfCsexraTag::getTimeImageDuration ( ) const

Get the TIME_IMAGE_DURATION field.

Returns
The TIME_IMAGE_DURATION field as a string.

Definition at line 229 of file ossimNitfCsexraTag.cpp.

References theImageTimeDuration.

230 {
232 }
char theImageTimeDuration[13]
FIELD: TIME_IMAGE_DURATION.

◆ parseStream()

void ossimNitfCsexraTag::parseStream ( std::istream &  in)
virtual

Method to parse data from stream.

Definition at line 38 of file ossimNitfCsexraTag.cpp.

References clearFields(), theAlongScanGsd, theAlongScanVertGsd, theAngleToNorth, theAzOfObliquity, theCircularError, theCrossScanGsd, theCrossScanVertGsd, theDynamicRange, theGeoBetaAngle, theGeoMeanGsd, theGeoMeanVertGsd, theGrdCover, theImageTimeDuration, theLine, theLinearError, theMaxGsd, theObliquityAngle, thePredictedNiirs, theSamples, theSensor, theSnowDepthCategory, theSunAzimuth, theSunElevation, and theTileFirstLine.

39 {
40  clearFields();
41 
42  in.read(theSensor, 6);
43  in.read(theTileFirstLine, 12);
44  in.read(theImageTimeDuration, 12);
45  in.read(theMaxGsd, 5);
46  in.read(theAlongScanGsd, 5);
47  in.read(theCrossScanGsd, 5);
48  in.read(theGeoMeanGsd, 5);
49  in.read(theAlongScanVertGsd, 5);
50  in.read(theCrossScanVertGsd, 5);
51  in.read(theGeoMeanVertGsd, 5);
52  in.read(theGeoBetaAngle, 5);
53  in.read(theDynamicRange, 5);
54  in.read(theLine, 7);
55  in.read(theSamples, 5);
56  in.read(theAngleToNorth, 7);
57  in.read(theObliquityAngle, 6);
58  in.read(theAzOfObliquity, 7);
59  in.read(theGrdCover, 1);
60  in.read(theSnowDepthCategory, 1);
61  in.read(theSunAzimuth, 7);
62  in.read(theSunElevation, 7);
63  in.read(thePredictedNiirs, 3);
64  in.read(theCircularError, 3);
65  in.read(theLinearError, 3);
66 }
char theSunAzimuth[8]
FIELD: SUN_AZIMUTH.
char theGrdCover[2]
FIELD: GRD_COVER.
char theLine[8]
FIELD: NUM_LINES.
char theCircularError[4]
FIELD: CIRCL_ERR.
char theGeoMeanGsd[6]
FIELD: GEO_MEAN_GSD.
char theCrossScanGsd[6]
FIELD: CROSS_SCAN_GSD.
char theSensor[7]
FIELD: SENSOR.
char theAzOfObliquity[8]
FIELD: AZ_OF_OBLIQUITY.
char theAlongScanGsd[6]
FIELD: ALONG_SCAN_GSD.
char theObliquityAngle[7]
FIELD: OBLIQUITY_ANGLE.
char theImageTimeDuration[13]
FIELD: TIME_IMAGE_DURATION.
char theSamples[6]
FIELD: NUM_SAMPLES.
char theSnowDepthCategory[2]
FIELD: SNOW_DEPTH_CAT.
char theDynamicRange[6]
FIELD: DYNAMIC_RANGE.
char thePredictedNiirs[4]
FIELD: PREDICTED_NIIRS.
char theCrossScanVertGsd[6]
FIELD: C_S_VERT_GSD.
char theAlongScanVertGsd[6]
FIELD: A_S_VERT_GSD.
char theMaxGsd[6]
FIELD: MAX_GSD.
char theLinearError[4]
FIELD: LINEAR_ERR.
char theSunElevation[8]
FIELD: SUN_ELEVATION.
char theGeoBetaAngle[6]
FIELD: GEO_BETA_ANGLE.
virtual void clearFields()
Method to clear all fields including null terminating.
char theGeoMeanVertGsd[6]
FIELD: GEO_MEAN_VERT_GSD.
char theTileFirstLine[13]
FIELD: TIME_FIRST_LINE_IMAGE.
char theAngleToNorth[8]
FIELD: ANGLE_TO_NORTH.

◆ print()

std::ostream & ossimNitfCsexraTag::print ( std::ostream &  out,
const std::string &  prefix 
) const
virtual

Print method that outputs a key/value type format adding prefix to keys.

Parameters
outStream to output to.
prefixPrefix added to key like "image0.";

Reimplemented from ossimNitfRegisteredTag.

Definition at line 155 of file ossimNitfCsexraTag.cpp.

References ossimNitfRegisteredTag::getTagLength(), ossimNitfRegisteredTag::getTagName(), theAlongScanGsd, theAlongScanVertGsd, theAngleToNorth, theAzOfObliquity, theCircularError, theCrossScanGsd, theCrossScanVertGsd, theDynamicRange, theGeoBetaAngle, theGeoMeanGsd, theGeoMeanVertGsd, theGrdCover, theImageTimeDuration, theLine, theLinearError, theMaxGsd, theObliquityAngle, thePredictedNiirs, theSamples, theSensor, theSnowDepthCategory, theSunAzimuth, theSunElevation, and theTileFirstLine.

157 {
158  std::string pfx = prefix;
159  pfx += getTagName();
160  pfx += ".";
161 
162  out << setiosflags(std::ios::left)
163  << pfx << std::setw(24) << "CETAG:"
164  << getTagName() << "\n"
165  << pfx << std::setw(24) << "CEL:"
166  << getTagLength() << "\n"
167  << pfx << std::setw(24) << "SENSOR:"
168  << theSensor << "\n"
169  << pfx << std::setw(24) << "TIME_FIRST_LINE_IMAGE:"
170  << theTileFirstLine << "\n"
171  << pfx << std::setw(24) << "TIME_IMAGE_DURATION:"
172  << theImageTimeDuration << "\n"
173  << pfx << std::setw(24) << "MAX_GSD:"
174  << theMaxGsd << "\n"
175  << pfx << std::setw(24) << "ALONG_SCAN_GSD:"
176  << theAlongScanGsd << "\n"
177  << pfx << std::setw(24) << "CROSS_SCAN_GSD:"
178  << theCrossScanGsd << "\n"
179  << pfx << std::setw(24) << "GEO_MEAN_GSD:"
180  << theGeoMeanGsd << "\n"
181  << pfx << std::setw(24) << "A_S_VERT_GSD:"
182  << theAlongScanVertGsd << "\n"
183  << pfx << std::setw(24) << "C_S_VERT_GSD:"
184  << theCrossScanVertGsd << "\n"
185  << pfx << std::setw(24) << "GEO_MEAN_VERT_GSD:"
186  << theGeoMeanVertGsd << "\n"
187  << pfx << std::setw(24) << "GEO_BETA_ANGLE:"
188  << theGeoBetaAngle << "\n"
189  << pfx << std::setw(24) << "DYNAMIC_RANGE:"
190  << theDynamicRange << "\n"
191  << pfx << std::setw(24) << "NUM_LINES:"
192  << theLine << "\n"
193  << pfx << std::setw(24) << "NUM_SAMPLES:"
194  << theSamples << "\n"
195  << pfx << std::setw(24) << "ANGLE_TO_NORTH:"
196  << theAngleToNorth << "\n"
197  << pfx << std::setw(24) << "OBLIQUITY_ANGLE:"
198  << theObliquityAngle << "\n"
199  << pfx << std::setw(24) << "AZ_OF_OBLIQUITY:"
200  << theAzOfObliquity << "\n"
201  << pfx << std::setw(24) << "GRD_COVER:"
202  << theGrdCover << "\n"
203  << pfx << std::setw(24) << "SNOW_DEPTH_CAT:"
204  << theSnowDepthCategory << "\n"
205  << pfx << std::setw(24) << "SUN_AZIMUTH:"
206  << theSunAzimuth << "\n"
207  << pfx << std::setw(24) << "SUN_ELEVATION:"
208  << theSunElevation << "\n"
209  << pfx << std::setw(24) << "PREDICTED_NIIRS:"
210  << thePredictedNiirs << "\n"
211  << pfx << std::setw(24) << "CIRCL_ERR:"
212  << theCircularError << "\n"
213  << pfx << std::setw(24) << "LINEAR_ERR:"
214  << theLinearError<< "\n";
215 
216  return out;
217 }
virtual const std::string & getTagName() const
This will return the name of the registered tag for this user defined header.
char theSunAzimuth[8]
FIELD: SUN_AZIMUTH.
char theGrdCover[2]
FIELD: GRD_COVER.
char theLine[8]
FIELD: NUM_LINES.
char theCircularError[4]
FIELD: CIRCL_ERR.
char theGeoMeanGsd[6]
FIELD: GEO_MEAN_GSD.
char theCrossScanGsd[6]
FIELD: CROSS_SCAN_GSD.
char theSensor[7]
FIELD: SENSOR.
char theAzOfObliquity[8]
FIELD: AZ_OF_OBLIQUITY.
char theAlongScanGsd[6]
FIELD: ALONG_SCAN_GSD.
char theObliquityAngle[7]
FIELD: OBLIQUITY_ANGLE.
char theImageTimeDuration[13]
FIELD: TIME_IMAGE_DURATION.
char theSamples[6]
FIELD: NUM_SAMPLES.
virtual ossim_uint32 getTagLength() const
Returns the length in bytes of the tag from the CEL or REL field.
char theSnowDepthCategory[2]
FIELD: SNOW_DEPTH_CAT.
char theDynamicRange[6]
FIELD: DYNAMIC_RANGE.
char thePredictedNiirs[4]
FIELD: PREDICTED_NIIRS.
char theCrossScanVertGsd[6]
FIELD: C_S_VERT_GSD.
char theAlongScanVertGsd[6]
FIELD: A_S_VERT_GSD.
char theMaxGsd[6]
FIELD: MAX_GSD.
char theLinearError[4]
FIELD: LINEAR_ERR.
char theSunElevation[8]
FIELD: SUN_ELEVATION.
char theGeoBetaAngle[6]
FIELD: GEO_BETA_ANGLE.
char theGeoMeanVertGsd[6]
FIELD: GEO_MEAN_VERT_GSD.
char theTileFirstLine[13]
FIELD: TIME_FIRST_LINE_IMAGE.
char theAngleToNorth[8]
FIELD: ANGLE_TO_NORTH.

◆ writeStream()

void ossimNitfCsexraTag::writeStream ( std::ostream &  out)
virtual

Method to write data to stream.

Definition at line 68 of file ossimNitfCsexraTag.cpp.

References theAlongScanGsd, theAlongScanVertGsd, theAngleToNorth, theAzOfObliquity, theCircularError, theCrossScanGsd, theCrossScanVertGsd, theDynamicRange, theGeoBetaAngle, theGeoMeanGsd, theGeoMeanVertGsd, theGrdCover, theImageTimeDuration, theLine, theLinearError, theMaxGsd, theObliquityAngle, thePredictedNiirs, theSamples, theSensor, theSnowDepthCategory, theSunAzimuth, theSunElevation, and theTileFirstLine.

69 {
70  out.write(theSensor, 6);
71  out.write(theTileFirstLine, 12);
72  out.write(theImageTimeDuration, 12);
73  out.write(theMaxGsd, 5);
74  out.write(theAlongScanGsd, 5);
75  out.write(theCrossScanGsd, 5);
76  out.write(theGeoMeanGsd, 5);
77  out.write(theAlongScanVertGsd, 5);
78  out.write(theCrossScanVertGsd, 5);
79  out.write(theGeoMeanVertGsd, 5);
80  out.write(theGeoBetaAngle, 5);
81  out.write(theDynamicRange, 5);
82  out.write(theLine, 7);
83  out.write(theSamples, 5);
84  out.write(theAngleToNorth, 7);
85  out.write(theObliquityAngle, 6);
86  out.write(theAzOfObliquity, 7);
87  out.write(theGrdCover, 1);
88  out.write(theSnowDepthCategory, 1);
89  out.write(theSunAzimuth, 7);
90  out.write(theSunElevation, 7);
91  out.write(thePredictedNiirs, 3);
92  out.write(theCircularError, 3);
93  out.write(theLinearError, 3);
94 }
char theSunAzimuth[8]
FIELD: SUN_AZIMUTH.
char theGrdCover[2]
FIELD: GRD_COVER.
char theLine[8]
FIELD: NUM_LINES.
char theCircularError[4]
FIELD: CIRCL_ERR.
char theGeoMeanGsd[6]
FIELD: GEO_MEAN_GSD.
char theCrossScanGsd[6]
FIELD: CROSS_SCAN_GSD.
char theSensor[7]
FIELD: SENSOR.
char theAzOfObliquity[8]
FIELD: AZ_OF_OBLIQUITY.
char theAlongScanGsd[6]
FIELD: ALONG_SCAN_GSD.
char theObliquityAngle[7]
FIELD: OBLIQUITY_ANGLE.
char theImageTimeDuration[13]
FIELD: TIME_IMAGE_DURATION.
char theSamples[6]
FIELD: NUM_SAMPLES.
char theSnowDepthCategory[2]
FIELD: SNOW_DEPTH_CAT.
char theDynamicRange[6]
FIELD: DYNAMIC_RANGE.
char thePredictedNiirs[4]
FIELD: PREDICTED_NIIRS.
char theCrossScanVertGsd[6]
FIELD: C_S_VERT_GSD.
char theAlongScanVertGsd[6]
FIELD: A_S_VERT_GSD.
char theMaxGsd[6]
FIELD: MAX_GSD.
char theLinearError[4]
FIELD: LINEAR_ERR.
char theSunElevation[8]
FIELD: SUN_ELEVATION.
char theGeoBetaAngle[6]
FIELD: GEO_BETA_ANGLE.
char theGeoMeanVertGsd[6]
FIELD: GEO_MEAN_VERT_GSD.
char theTileFirstLine[13]
FIELD: TIME_FIRST_LINE_IMAGE.
char theAngleToNorth[8]
FIELD: ANGLE_TO_NORTH.

Member Data Documentation

◆ theAlongScanGsd

char ossimNitfCsexraTag::theAlongScanGsd[6]
protected

FIELD: ALONG_SCAN_GSD.

5 byte field BCS-A inches

Measured along scan GSD for the primary target.

000.0 to 999.9 or N/A

Definition at line 250 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getAlongScanGsd(), parseStream(), print(), and writeStream().

◆ theAlongScanVertGsd

char ossimNitfCsexraTag::theAlongScanVertGsd[6]
protected

FIELD: A_S_VERT_GSD.

5 byte field BCS-A inches

Measured along scan vertical GSD for the primary target.

000.0 to 999.9 or N/A

Definition at line 283 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getAlongScanVerticalGsd(), parseStream(), print(), and writeStream().

◆ theAngleToNorth

char ossimNitfCsexraTag::theAngleToNorth[8]
protected

FIELD: ANGLE_TO_NORTH.

7 byte field BCS-N Degrees

Angle in degrees measured clockwise from the first row of the image to true North at image start time.

000.000 to 360.000

Definition at line 358 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getAngleToNorth(), parseStream(), print(), and writeStream().

◆ theAzOfObliquity

char ossimNitfCsexraTag::theAzOfObliquity[8]
protected

FIELD: AZ_OF_OBLIQUITY.

7 byte field BCS-N Degrees

Azimuth of the target-SV line-of-sight vectory projected in the target local horizontal plane, measured clockwise from True North, computed at Image Start Time. The Velocity Control Point on the focal plane is projected to this azimuth projection in the target local horizontal plane.

000.000 to 360.000

Definition at line 386 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getAzimuthOfObliquity(), parseStream(), print(), and writeStream().

◆ theCircularError

char ossimNitfCsexraTag::theCircularError[4]
protected

FIELD: CIRCL_ERR.

3 byte field BCS-N Feet

Predicted CE/90 in the geolocation in the scene.

000 to 999

Definition at line 461 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getCE90(), parseStream(), print(), and writeStream().

◆ theCrossScanGsd

char ossimNitfCsexraTag::theCrossScanGsd[6]
protected

FIELD: CROSS_SCAN_GSD.

5 byte field BCS-A inches

Measured cross scan GSD for the primary target.

000.0 to 999.9 or N/A

Definition at line 261 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getCrossScanGsd(), parseStream(), print(), and writeStream().

◆ theCrossScanVertGsd

char ossimNitfCsexraTag::theCrossScanVertGsd[6]
protected

FIELD: C_S_VERT_GSD.

5 byte field BCS-A inches

Measured cross scan vertical GSD for the primary target.

000.0 to 999.9 or N/A

Definition at line 294 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getCrossScanVerticalGsd(), parseStream(), print(), and writeStream().

◆ theDynamicRange

char ossimNitfCsexraTag::theDynamicRange[6]
protected

FIELD: DYNAMIC_RANGE.

5 byte field BCS-N

Dynamic range extent of pixel values in the image.

00000 to 02047 for PAN and MS.

Definition at line 328 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getDynamicRange(), parseStream(), print(), and writeStream().

◆ theGeoBetaAngle

char ossimNitfCsexraTag::theGeoBetaAngle[6]
protected

FIELD: GEO_BETA_ANGLE.

5 byte field BCS-A Degrees

Angle on ground (Earth tangent plane) between along scan and cross scan directions.

00.0 to 180.0 or N/A

Definition at line 317 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getGeoBetaAngle(), parseStream(), print(), and writeStream().

◆ theGeoMeanGsd

char ossimNitfCsexraTag::theGeoMeanGsd[6]
protected

FIELD: GEO_MEAN_GSD.

5 byte field BCS-A inches

Measured mean GSD for the primary target.

000.0 to 999.9 or N/A

Definition at line 272 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getGeoMeanGsd(), parseStream(), print(), and writeStream().

◆ theGeoMeanVertGsd

char ossimNitfCsexraTag::theGeoMeanVertGsd[6]
protected

FIELD: GEO_MEAN_VERT_GSD.

5 byte field BCS-A inches

Measured mean vertical GSD for the primary target.

000.0 to 999.9 or N/A

Definition at line 305 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getGeoMeanVerticalGsd(), parseStream(), print(), and writeStream().

◆ theGrdCover

char ossimNitfCsexraTag::theGrdCover[2]
protected

FIELD: GRD_COVER.

1 byte field BCS-N

Snow or no snow

1 = snow, 0 = no snow, 9 = not available.

Definition at line 397 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getGroundCover(), parseStream(), print(), and writeStream().

◆ theImageTimeDuration

char ossimNitfCsexraTag::theImageTimeDuration[13]
protected

FIELD: TIME_IMAGE_DURATION.

12 byte field BCS-N Seconds (UTC)

Time Difference in seconds between the first line, synthetic array, and the last line, synthetic array.

00000.000000 to 86400.000000

Definition at line 227 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getTimeImageDuration(), parseStream(), print(), and writeStream().

◆ theLine

char ossimNitfCsexraTag::theLine[8]
protected

FIELD: NUM_LINES.

7 byte field BCS-N

0000101 to 9999999

Definition at line 337 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getNumLines(), parseStream(), print(), and writeStream().

◆ theLinearError

char ossimNitfCsexraTag::theLinearError[4]
protected

FIELD: LINEAR_ERR.

3 byte field BCS-N Feet

Predicted LE/90 in the geolocation in the scene

000 to 999

Definition at line 472 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getLE90(), parseStream(), print(), and writeStream().

◆ theMaxGsd

char ossimNitfCsexraTag::theMaxGsd[6]
protected

FIELD: MAX_GSD.

5 byte field BCS-N inches

Predicted maximum mean ground sample distance (GSD)for the primary target.

000.0 to 999.9

Definition at line 239 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getMaxGsd(), parseStream(), print(), and writeStream().

◆ theObliquityAngle

char ossimNitfCsexraTag::theObliquityAngle[7]
protected

FIELD: OBLIQUITY_ANGLE.

6 byte field BCS-N Degrees

Obliquity angle measured from target local vertical. I.e., the angle betweent the local North-Earth-Down (NED) horizontal and the optical axis of the image at the time of closest approach.

00.000 to 90.000

Definition at line 371 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getObliquityAngle(), parseStream(), print(), and writeStream().

◆ thePredictedNiirs

char ossimNitfCsexraTag::thePredictedNiirs[4]
protected

FIELD: PREDICTED_NIIRS.

3 byte field BCS-A

Imagery NIIRS value.

0.0 to 9.0 or N/A

Definition at line 450 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getPredictedNiirs(), parseStream(), print(), and writeStream().

◆ theSamples

char ossimNitfCsexraTag::theSamples[6]
protected

FIELD: NUM_SAMPLES.

5 byte field BCS-N

00101 to 99999

Definition at line 346 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getNumSamples(), parseStream(), print(), and writeStream().

◆ theSensor

char ossimNitfCsexraTag::theSensor[7]
protected

FIELD: SENSOR.

6 byte field BCS-A

PAN MS

Definition at line 203 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getSensor(), parseStream(), print(), and writeStream().

◆ theSnowDepthCategory

char ossimNitfCsexraTag::theSnowDepthCategory[2]
protected

FIELD: SNOW_DEPTH_CAT.

1 byte field BCS-N

Provides the weighted average of the snow depth values for all of the grids that overlap the tasked image area.

0 = 0 inches, 1 = 1-8 inches or ice, 2 = 9-17 inches, 3 = greater than 17 inches 9 = Not Available

Definition at line 413 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getSnowDepth(), parseStream(), print(), and writeStream().

◆ theSunAzimuth

char ossimNitfCsexraTag::theSunAzimuth[8]
protected

FIELD: SUN_AZIMUTH.

7 byte field BCS-N Degrees

Azimuth of the target-sun line-of-sight vector projected in the target local horizontal plane, measured clockwise from True North, calculated at Image Start Time.

000.000 to 360.000

Definition at line 426 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getSunAzimuth(), parseStream(), print(), and writeStream().

◆ theSunElevation

char ossimNitfCsexraTag::theSunElevation[8]
protected

FIELD: SUN_ELEVATION.

7 byte field BCS-N Degrees

The sun elevation angle from the local target plane to the sun calculated at Image_Start_Time, where the local target plane is referenced by the Target Centered - Earth Fixed, ST coordinate frame.

-90.000 to +90.000

Definition at line 439 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getSunElevation(), parseStream(), print(), and writeStream().

◆ theTileFirstLine

char ossimNitfCsexraTag::theTileFirstLine[13]
protected

FIELD: TIME_FIRST_LINE_IMAGE.

12 byte field BCS-N Seconds (UTC)

Time in seconds from midnight for the first line, synthetic array, of the Dataset collection.

00000.000000 to 86400.000000

Definition at line 215 of file ossimNitfCsexraTag.h.

Referenced by clearFields(), getTimeFirstLineImage(), parseStream(), print(), and writeStream().


The documentation for this class was generated from the following files: