OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimNitfProjectionParameterTag.h>
Public Member Functions | |
ossimNitfProjectionParameterTag () | |
virtual | ~ossimNitfProjectionParameterTag () |
virtual void | parseStream (std::istream &in) |
virtual void | writeStream (std::ostream &out) |
virtual std::ostream & | print (std::ostream &out, const std::string &prefix=std::string()) const |
Print method that outputs a key/value type format adding prefix to keys. More... | |
virtual ossim_uint32 | getSizeInBytes () const |
Returns the length in bytes of the tag from the CEL or REL field. More... | |
virtual void | clearFields () |
virtual void | clearParameters () |
virtual void | addParameter (const ossimString ¶m) |
virtual void | addParameter (const ossim_float64 ¶m) |
void | setName (const ossimString &name) |
void | setCode (const ossimString &code) |
ossimString | getName () const |
ossimString | getCode () const |
void | setFalseX (double falseX) |
void | setFalseY (double falseY) |
double | getFalseX () const |
double | getFalseY () const |
![]() | |
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 | 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< ossimProperty > | getProperty (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 |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () 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) |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (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 |
![]() | |
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 | theProjectionName [81] |
FIELD: PRN. More... | |
char | theProjectionCode [3] |
FIELD: PCO. More... | |
char | theNumberOfParameters [2] |
FIELD: NUM_PRJ. More... | |
std::vector< ossimString > | theProjectionParameters |
FIELD(S): PRJn. More... | |
char | theFalseXOrigin [16] |
FIELD: XOR. More... | |
char | theFalseYOrigin [16] |
FIELD: YOR. More... | |
![]() | |
std::string | m_tagName |
ossim_uint32 | m_tagLength |
Additional Inherited Members | |
![]() | |
virtual | ~ossimReferenced () |
Definition at line 18 of file ossimNitfProjectionParameterTag.h.
ossimNitfProjectionParameterTag::ossimNitfProjectionParameterTag | ( | ) |
Definition at line 16 of file ossimNitfProjectionParameterTag.cpp.
References clearFields().
|
virtual |
Definition at line 22 of file ossimNitfProjectionParameterTag.cpp.
|
virtual |
Definition at line 134 of file ossimNitfProjectionParameterTag.cpp.
References ossimString::c_str(), and theProjectionParameters.
Referenced by addParameter().
|
virtual |
Definition at line 145 of file ossimNitfProjectionParameterTag.cpp.
References addParameter(), and ossimString::toString().
|
virtual |
Definition at line 108 of file ossimNitfProjectionParameterTag.cpp.
References ossimNitfRegisteredTag::setTagLength(), theFalseXOrigin, theFalseYOrigin, theNumberOfParameters, theProjectionCode, theProjectionName, and theProjectionParameters.
Referenced by ossimNitfProjectionParameterTag(), and parseStream().
|
virtual |
Definition at line 128 of file ossimNitfProjectionParameterTag.cpp.
References theNumberOfParameters, and theProjectionParameters.
ossimString ossimNitfProjectionParameterTag::getCode | ( | ) | const |
Definition at line 177 of file ossimNitfProjectionParameterTag.cpp.
References theProjectionCode, and ossimString::trim().
double ossimNitfProjectionParameterTag::getFalseX | ( | ) | const |
Definition at line 204 of file ossimNitfProjectionParameterTag.cpp.
References theFalseXOrigin, and ossimString::toDouble().
double ossimNitfProjectionParameterTag::getFalseY | ( | ) | const |
Definition at line 209 of file ossimNitfProjectionParameterTag.cpp.
References theFalseYOrigin, and ossimString::toDouble().
ossimString ossimNitfProjectionParameterTag::getName | ( | ) | const |
Definition at line 172 of file ossimNitfProjectionParameterTag.cpp.
References theProjectionName, and ossimString::trim().
|
virtual |
Returns the length in bytes of the tag from the CEL or REL field.
The entire TRE length is 11 plus this(the size of the CEL or REL field).
Reimplemented from ossimNitfRegisteredTag.
Definition at line 74 of file ossimNitfProjectionParameterTag.cpp.
References theProjectionParameters.
Referenced by parseStream().
|
virtual |
Definition at line 26 of file ossimNitfProjectionParameterTag.cpp.
References clearFields(), getSizeInBytes(), ossimNitfRegisteredTag::setTagLength(), theFalseXOrigin, theFalseYOrigin, theNumberOfParameters, theProjectionCode, theProjectionName, theProjectionParameters, and ossimString::toUInt32().
|
virtual |
Print method that outputs a key/value type format adding prefix to keys.
out | Stream to output to. |
prefix | Prefix added to key like "image0."; |
Reimplemented from ossimNitfRegisteredTag.
Definition at line 79 of file ossimNitfProjectionParameterTag.cpp.
References ossimNitfRegisteredTag::getRegisterTagName(), ossimNitfRegisteredTag::getTagLength(), theFalseXOrigin, theFalseYOrigin, theNumberOfParameters, theProjectionCode, theProjectionName, theProjectionParameters, and ossimString::toString().
void ossimNitfProjectionParameterTag::setCode | ( | const ossimString & | code | ) |
Definition at line 161 of file ossimNitfProjectionParameterTag.cpp.
References ossimString::c_str(), and theProjectionCode.
void ossimNitfProjectionParameterTag::setFalseX | ( | double | falseX | ) |
Definition at line 182 of file ossimNitfProjectionParameterTag.cpp.
References theFalseXOrigin.
void ossimNitfProjectionParameterTag::setFalseY | ( | double | falseY | ) |
Definition at line 193 of file ossimNitfProjectionParameterTag.cpp.
References theFalseYOrigin.
void ossimNitfProjectionParameterTag::setName | ( | const ossimString & | name | ) |
Definition at line 150 of file ossimNitfProjectionParameterTag.cpp.
References ossimString::c_str(), and theProjectionName.
|
virtual |
Definition at line 51 of file ossimNitfProjectionParameterTag.cpp.
References theFalseXOrigin, theFalseYOrigin, theNumberOfParameters, theProjectionCode, theProjectionName, theProjectionParameters, and ossimString::toUInt32().
|
protected |
FIELD: XOR.
required 15 byte field.
Projection False X (Easting) Origin
This field shall contain the projection false X (easting) origin. The default value is 000000000000000, which implies that there is no projection false X origin.
Definition at line 314 of file ossimNitfProjectionParameterTag.h.
Referenced by clearFields(), getFalseX(), parseStream(), print(), setFalseX(), and writeStream().
|
protected |
FIELD: YOR.
required 15 byte field.
Projection False Y (Northing) Origin
This field shall contain the projection false Y (northing) origin. The default value is 000000000000000, which implies that there is no projection false Y origin.
Definition at line 329 of file ossimNitfProjectionParameterTag.h.
Referenced by clearFields(), getFalseY(), parseStream(), print(), setFalseY(), and writeStream().
|
protected |
FIELD: NUM_PRJ.
required 1 byte field ranging from 0-9
Number of Projection Parameters
This field shall contain the number of projection parameters. The PRJ Field should be repeated as necessary depending on the projection code (see Part 3-6). If the number of projection parameters provided is lower than specified in Part 3-6, the missing parameters value is 0.
Definition at line 290 of file ossimNitfProjectionParameterTag.h.
Referenced by clearFields(), clearParameters(), parseStream(), print(), and writeStream().
|
protected |
FIELD: PCO.
required 2 byte field.
Projection Code
This field shall contain the code of the projection to which the Image Segment refers. The default value is TC.
Code values:
AC Albers Equal-Area Conic Parameters:
AK (Lambert) Azimuthal Equal-Area Parameters:
AL Azimuthal Equidistant Parameters:
BF Bonne Parameters:
CC Equidistant Conic with 1 Standard Parallel Parameters:
CP Equirectangular Parameters:
CS Cassini-Soldner Parameters:
ED Eckert VI Parameters:
EF Eckert IV Parameters:
GN Gnomonic Parameters:
HX Hotine Oblique Mercator based on 2 Points Parameters:
KA Equidistant Conic with 2 Standard Parallels Parameters:
LA Laborde Parameters:
LE Lambert Conformal Conic Parameters:
LI Cylindrical Equal Area Parameters:
LJ Lambert Equal-Area Meridional Parameters:
MC Mercator Parameters:
MH Miller Cylindrical Parameters:
MJ French Lambert Parameters:
MP Mollweide Parameters:
NT New Zealand Map Grid Parameters:
OC Oblique Mercator Parameters:
OD Orthographic Parameters:
PG Polar Stereographic Parameters:
PH Polyconic Parameters:
RS or RB Hotine Oblique Mercator (Rectified Skew Orthomorphic) Parameters:
RX Robinson Parameters:
SA Sinusoidal Parameters:
SD Oblique Stereographic Parameters:
SX Space Oblique Mercator Parameters:
TC Transverse Mercator Parameters:
TX Transverse Cylindrical Equal Area Parameters:
VA Van der Grinten Parameters:
VX General Vertical NearSide Perspective Parameters:
ZY Other Known Projection
Definition at line 274 of file ossimNitfProjectionParameterTag.h.
Referenced by clearFields(), getCode(), parseStream(), print(), setCode(), and writeStream().
|
protected |
FIELD: PRN.
required 80 byte field.
Projection Name
This field shall contain the name of the projection to which the Image Segment refers. The default value is Transverse Mercator.
Definition at line 61 of file ossimNitfProjectionParameterTag.h.
Referenced by clearFields(), getName(), parseStream(), print(), setName(), and writeStream().
|
protected |
FIELD(S): PRJn.
Conditional 15 byte field each.
Projection Parameter Each occurrence of this field provides an appropriate parameter to accurately describe the projection. See Part 3-6 to know the kind of parameters needed for each projection code. 15 BCS-N C
Definition at line 301 of file ossimNitfProjectionParameterTag.h.
Referenced by addParameter(), clearFields(), clearParameters(), getSizeInBytes(), parseStream(), print(), and writeStream().