14 static std::string IID_KW =
"iid";
15 static std::string EDITION_KW =
"edition";
17 static std::string RSN_KW =
"rsn";
18 static std::string CSN_KW =
"csn";
20 static std::string RFEP_KW =
"rfep";
21 static std::string CFEP_KW =
"cfep";
23 static std::string RNRMO_KW =
"rnrmo";
24 static std::string CNRMO_KW =
"cnrmo";
25 static std::string XNRMO_KW =
"xnrmo";
26 static std::string YNRMO_KW =
"ynrmo";
27 static std::string ZNRMO_KW =
"znrmo";
29 static std::string RNRMSF_KW =
"rnrmsf";
30 static std::string CNRMSF_KW =
"cnrmsf";
31 static std::string XNRMSF_KW =
"xnrmsf";
32 static std::string YNRMSF_KW =
"ynrmsf";
33 static std::string ZNRMSF_KW =
"znrmsf";
35 static std::string RNPWRX_KW =
"rnpwrx";
36 static std::string RNPWRY_KW =
"rnpwry";
37 static std::string RNPWRZ_KW =
"rnpwrz";
38 static std::string RNTRMS_KW =
"rntrms";
40 static std::string RNPCF_KW =
"rnpcf";
42 static std::string RDPWRX_KW =
"rdpwrx";
43 static std::string RDPWRY_KW =
"rdpwry";
44 static std::string RDPWRZ_KW =
"rdpwrz";
45 static std::string RDTRMS_KW =
"rdtrms";
47 static std::string RDPCF_KW =
"rdpcf";
49 static std::string CNPWRX_KW =
"cnpwrx";
50 static std::string CNPWRY_KW =
"cnpwry";
51 static std::string CNPWRZ_KW =
"cnpwrz";
52 static std::string CNTRMS_KW =
"cntrms";
54 static std::string CNPCF_KW =
"cnpcf";
56 static std::string CDPWRX_KW =
"cdpwrx";
57 static std::string CDPWRY_KW =
"cdpwry";
58 static std::string CDPWRZ_KW =
"cdpwrz";
59 static std::string CDTRMS_KW =
"cdtrms";
61 static std::string CDPCF_KW =
"cdpcf";
119 m_edition( obj.m_edition ),
124 m_rfep( obj.m_rfep ),
125 m_cfep( obj.m_cfep ),
127 m_rnrmo( obj.m_rnrmo ),
128 m_cnrmo( obj.m_cnrmo ),
129 m_xnrmo( obj.m_xnrmo ),
130 m_ynrmo( obj.m_ynrmo ),
131 m_znrmo( obj.m_znrmo ),
133 m_rnrmsf( obj.m_rnrmsf ),
134 m_cnrmsf( obj.m_cnrmsf ),
135 m_xnrmsf( obj.m_xnrmsf ),
136 m_ynrmsf( obj.m_ynrmsf ),
137 m_znrmsf( obj.m_znrmsf ),
139 m_rnpwrx( obj.m_rnpwrx ),
140 m_rnpwry( obj.m_rnpwry ),
141 m_rnpwrz( obj.m_rnpwrz ),
142 m_rntrms( obj.m_rntrms ),
144 m_rnpcf( obj.m_rnpcf ),
146 m_rdpwrx( obj.m_rdpwrx ),
147 m_rdpwry( obj.m_rdpwry ),
148 m_rdpwrz( obj.m_rdpwrz ),
149 m_rdtrms( obj.m_rdtrms ),
151 m_rdpcf( obj.m_rdpcf ),
153 m_cnpwrx( obj.m_cnpwrx ),
154 m_cnpwry( obj.m_cnpwry ),
155 m_cnpwrz( obj.m_cnpwrz ),
156 m_cntrms( obj.m_cntrms ),
158 m_cnpcf( obj.m_cnpcf ),
160 m_cdpwrx( obj.m_cdpwrx ),
161 m_cdpwry( obj.m_cdpwry ),
162 m_cdpwrz( obj.m_cdpwrz ),
163 m_cdtrms( obj.m_cdtrms ),
165 m_cdpcf( obj.m_cdpcf )
228 std::string pfx = prefix + std::string(
"rsmpca");
230 pfx += std::string(
".");
232 kwl.
add( pfx.c_str(), IID_KW.c_str(),
m_iid.c_str() );
233 kwl.
add(pfx.c_str(), EDITION_KW.c_str(),
m_edition.c_str());
235 kwl.
add(pfx.c_str(), RSN_KW.c_str(),
m_rsn);
236 kwl.
add(pfx.c_str(), CSN_KW.c_str(),
m_csn);
238 kwl.
add(pfx.c_str(), RFEP_KW.c_str(),
m_rfep);
239 kwl.
add(pfx.c_str(), CFEP_KW.c_str(),
m_cfep);
241 kwl.
add(pfx.c_str(), RNRMO_KW.c_str(),
m_rnrmo);
242 kwl.
add(pfx.c_str(), CNRMO_KW.c_str(),
m_cnrmo);
243 kwl.
add(pfx.c_str(), XNRMO_KW.c_str(),
m_xnrmo);
244 kwl.
add(pfx.c_str(), YNRMO_KW.c_str(),
m_ynrmo);
245 kwl.
add(pfx.c_str(), ZNRMO_KW.c_str(),
m_znrmo);
261 key = RNPCF_KW.c_str();
275 key = RDPCF_KW.c_str();
288 key = CNPCF_KW.c_str();
301 key = CDPCF_KW.c_str();
311 const std::string& prefix,
314 std::string pfx = prefix + std::string(
"rsmpca");
316 pfx += std::string(
".");
326 value = kwl.
findKey( pfx, key );
337 value = kwl.
findKey( pfx, key );
540 bool keysParsed =
true;
553 if ( keysParsed ==
false )
598 bool keysParsed =
true;
611 if ( keysParsed ==
false )
656 bool keysParsed =
true;
669 if ( keysParsed ==
false )
718 bool keysParsed =
true;
731 if ( keysParsed ==
false )
749 if ( result ==
false )
753 <<
"ossimRsmpca::loadState WARNING:\n" 754 <<
"Error encountered parsing the following required keyword: " 755 <<
"<" << key <<
">. Check the keywordlist for proper syntax." const ossimRsmpca & operator=(const ossimRsmpca &rhs)
assignment operator
ossimString getRnrmo() const
ossimString getCnpwrz() const
ossimString getCnrmo() const
ossimString getZnrmsf() const
Represents serializable keyword/value map.
const std::string & findKey(const std::string &key) const
Find methods that take std::string(s).
ossimString getRnpwrx() const
ossimString getCfep() const
ossimString getRsn() const
ossimString getXnrmsf() const
static ossimString toString(bool aValue)
Numeric to string methods.
ossimString getCdpwry() const
ossimString getRnpwry() const
ossimString getCdtrms() const
bool loadState(const ossimKeywordlist &kwl, const std::string &prefix, ossim_uint32 index)
loadState Loads state from keyword list.
ossim_uint32 toUInt32() const
ossimString getCnpcf(ossim_uint32 index) const
ossimString getYnrmo() const
std::vector< ossim_float64 > m_rnpcf
ossimString getRdpwrx() const
ossimString getZnrmo() const
ossimString getCsn() const
ossimString getRdpcf(ossim_uint32 index) const
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
std::vector< ossim_float64 > m_cnpcf
ossimString getCntrms() const
ossimString getEdition() const
bool initialize(const ossimNitfRsmpcaTag *rsmpcaTag)
initialize Initializes from nitf rsmpia tag.
std::vector< ossim_float64 > m_rdpcf
ossimString getRfep() const
ossimString getRnpcf(ossim_uint32 index) const
unsigned int ossim_uint32
ossimString getIid() const
ossimString trim(const ossimString &valueToTrim=ossimString(" \\)) const
this will strip lead and trailing character passed in.
ossim_float64 toFloat64() const
ossimString getCdpcf(ossim_uint32 index) const
ossimString getYnrmsf() const
ossimString getRnrmsf() const
ossimString getRdpwrz() const
ossimString getCnpwry() const
ossimString getRntrms() const
ossimString getXnrmo() const
ossimString getCdpwrx() const
ossimString getRdtrms() const
RSM Polynomial Coefficients: Polynomials coefficients for a section.
ossimString getCdpwrz() const
ossimString getCnrmsf() const
void saveState(ossimKeywordlist &kwl, const std::string &prefix, ossim_uint32 index) const
saveState Saves state to keyword list.
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
ossimString getRnpwrz() const
ossimString getRdpwry() const
std::vector< ossim_float64 > m_cdpcf
ossimRsmpca()
default constructor
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
ossimString getCnpwrx() const
const std::string & string() const