OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimXmpInfo.h>
Public Member Functions | |
ossimXmpInfo () | |
default constructor More... | |
virtual | ~ossimXmpInfo () |
virtual destructor More... | |
virtual bool | open (const ossimFilename &file) |
open method. More... | |
virtual std::ostream & | print (std::ostream &out) const |
Print method. More... | |
const std::string & | getXmpApp1XmlBlock () const |
ossimRefPtr< ossimProjection > | getProjection (const ossimDrect &imageRect) const |
Method to get a projection if possible. More... | |
void | getDate (std::string &date) const |
Gets the date if available in ISO8601 format: YYYY-MM-DDThh:mm:ss.sssZ. More... | |
void | getMissionId (std::string &mission) const |
Gets the mission ID if available. More... | |
void | getSensorId (std::string &sensor) const |
Gets the sensor ID if available. More... | |
![]() | |
ossimInfoBase () | |
default constructor More... | |
virtual bool | open (std::shared_ptr< ossim::istream > &str, const std::string &connectionString) |
open method. More... | |
void | setProcessOverviewFlag (bool flag) |
Sets the overview flag. More... | |
bool | getProcessOverviewFlag () const |
Method to get the overview flag. More... | |
virtual bool | getKeywordlist (ossimKeywordlist &kwl) const |
Method to dump info to a keyword list. More... | |
virtual bool | getKeywordlist (ossimKeywordlist &kwl, ossim_uint32 entryIndex) const |
Method to dump info to a keyword list. More... | |
![]() | |
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 |
Private Member Functions | |
bool | getXmpApp1XmlBlock (std::ifstream &str, std::string &xmpApp1XmlBlock) const |
Gets the xml block as a string from stream. More... | |
bool | getPath (const ossimString &path, const ossimXmlDocument &xdoc, ossimString &s) const |
Gets path from doc and initializes string. More... | |
Private Attributes | |
ossimFilename | m_file |
std::string | m_xmpApp1XmlBlock |
Additional Inherited Members | |
![]() | |
virtual | ~ossimInfoBase () |
virtual destructor More... | |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
bool | theOverviewFlag |
Definition at line 30 of file ossimXmpInfo.h.
ossimXmpInfo::ossimXmpInfo | ( | ) |
|
virtual |
void ossimXmpInfo::getDate | ( | std::string & | date | ) | const |
Gets the date if available in ISO8601 format: YYYY-MM-DDThh:mm:ss.sssZ.
date | Initialized by this. Will be cleared if date not found. |
Definition at line 402 of file ossimXmpInfo.cpp.
References getPath(), getXmpApp1XmlBlock(), m_xmpApp1XmlBlock, os2, ossimXmlDocument::read(), size, and ossimString::string().
Referenced by print().
void ossimXmpInfo::getMissionId | ( | std::string & | mission | ) | const |
Gets the mission ID if available.
mission | Initialized by this. Will be cleared if date not found. |
Definition at line 582 of file ossimXmpInfo.cpp.
Referenced by print().
|
private |
Gets path from doc and initializes string.
path | Xml path to look for. |
xdoc | Xml doc to look in. |
s | String to initialize. |
Definition at line 594 of file ossimXmpInfo.cpp.
References ossimXmlDocument::findNodes().
Referenced by getDate(), and getProjection().
ossimRefPtr< ossimProjection > ossimXmpInfo::getProjection | ( | const ossimDrect & | imageRect | ) | const |
Method to get a projection if possible.
imageRect | Require image rectangle of associated meta data parsed by this class. |
Definition at line 266 of file ossimXmpInfo.cpp.
References getPath(), getXmpApp1XmlBlock(), ossimDrect::hasNans(), ossimGpt::lat, ossimDrect::ll(), ossimGpt::lon, ossimDrect::lr(), m_xmpApp1XmlBlock, ossimXmlDocument::read(), size, ossimString::toFloat64(), ossimDrect::ul(), and ossimDrect::ur().
Referenced by ossimJpegTileSource::getInternalImageGeometry().
void ossimXmpInfo::getSensorId | ( | std::string & | sensor | ) | const |
Gets the sensor ID if available.
sensor | Initialized by this. Will be cleared if date not found. |
Definition at line 588 of file ossimXmpInfo.cpp.
Referenced by print().
const std::string & ossimXmpInfo::getXmpApp1XmlBlock | ( | ) | const |
Definition at line 261 of file ossimXmpInfo.cpp.
References m_xmpApp1XmlBlock.
Referenced by getDate(), getProjection(), open(), and print().
|
private |
Gets the xml block as a string from stream.
str | Input stream. |
xmpApp1XmlBlock | String initialized by this. |
Definition at line 78 of file ossimXmpInfo.cpp.
References ossim::byteOrder(), OSSIM_BIG_ENDIAN, and ossimEndian::swap().
|
virtual |
open method.
file | File name to open. |
Reimplemented from ossimInfoBase.
Definition at line 44 of file ossimXmpInfo.cpp.
References ossimString::c_str(), ossimString::clear(), getXmpApp1XmlBlock(), m_file, and m_xmpApp1XmlBlock.
Referenced by ossimJpegTileSource::getInternalImageGeometry().
|
virtual |
Print method.
out | Stream to print to. |
Implements ossimInfoBase.
Definition at line 220 of file ossimXmpInfo.cpp.
References ossimString::downcase(), ossimFilename::ext(), getDate(), getMissionId(), getSensorId(), getXmpApp1XmlBlock(), m_file, size, and ossimString::string().
|
private |
Definition at line 116 of file ossimXmpInfo.h.
|
private |
Definition at line 117 of file ossimXmpInfo.h.
Referenced by getDate(), getProjection(), getXmpApp1XmlBlock(), and open().