OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
GML support data class. More...
#include <ossimGmlSupportData.h>
Public Member Functions | |
ossimGmlSupportData () | |
default constructor More... | |
~ossimGmlSupportData () | |
destructor More... | |
bool | initialize (const ossimImageGeometry *geom, const ossimIrect &rect) |
Initializes gml block from geometry file. More... | |
bool | initialize (std::istream &in) |
Initializes from stream assumed to be a gml block. More... | |
bool | write (std::ostream &os) |
Write xml doc to stream. More... | |
ossimRefPtr< ossimXmlDocument > | getXmlDoc () const |
bool | getImageGeometry (ossimKeywordlist &geomKwl) const |
Extracts geometry info to keyword list. More... | |
Private Member Functions | |
ossimRefPtr< ossimXmlNode > | getGmljp2V1RootNode () const |
ossimRefPtr< ossimXmlNode > | getGmljp2V2RootNode () const |
void | getGeoOrigin (const ossimImageGeometry *geom, const ossimIpt &ul, ossimString &originString, ossimString &offsetVector1String, ossimString &offsetVector2String) const |
void | getMapOrigin (const ossimImageGeometry *geom, const ossimIpt &ul, ossimString &originString, ossimString &offsetVector1String, ossimString &offsetVector2String) const |
void | getLimits (const ossimIrect &rect, ossimString &gridHighString, ossimString &gridLowString) const |
void | getGeoBounds (const ossimImageGeometry *geom, const ossimIrect &rect, ossimString &upperCornerString, ossimString &lowerCornerString) const |
bool | configureGmljp2V2 (ossimRefPtr< ossimXmlNode > node, const ossimImageGeometry *geom, const ossimIrect &rect) |
bool | configureBounds (ossimRefPtr< ossimXmlNode > node, const ossimImageGeometry *geom, const ossimIrect &rect) |
bool | getImageGeometryFromSeonsorModel (ossimKeywordlist &geomKwl) const |
For sensor model data: More... | |
bool | getImageGeometryFromRectifiedGrid (ossimKeywordlist &geomKwl) const |
For map projected data: More... | |
bool | addLineSamps (const ossimString &xpath0, bool useGmlPrefix, ossimKeywordlist &geomKwl) const |
Adds line and sample to keyword list. More... | |
bool | addTie (const ossimString &xpath0, bool useGmlPrefix, ossim_uint32 pcsCode, ossimKeywordlist &geomKwl) const |
Adds tie point to keyword list. More... | |
bool | addScale (const ossimString &xpath0, bool useGmlPrefix, ossim_uint32 pcsCode, ossimKeywordlist &geomKwl) const |
Adds tie and scale to keyword list. More... | |
GML support data class.
Definition at line 29 of file ossimGmlSupportData.h.
ossimGmlSupportData::ossimGmlSupportData | ( | ) |
default constructor
Definition at line 40 of file ossimGmlSupportData.cpp.
ossimGmlSupportData::~ossimGmlSupportData | ( | ) |
|
private |
Adds line and sample to keyword list.
xpath0 | |
useGmlPrefix | If true tack on "gml:" to paths. |
geomKwl | Initialized by this. |
Definition at line 1177 of file ossimGmlSupportData.cpp.
References ossimKeywordlist::add(), ossimString::afterPos(), ossimString::beforePos(), ossimString::clear(), ossimString::find(), ossimXmlDocument::findNodes(), m_xmlDocument, ossimKeywordNames::NUMBER_LINES_KW, ossimKeywordNames::NUMBER_SAMPLES_KW, status, ossimString::toInt32(), and ossimRefPtr< T >::valid().
Referenced by getImageGeometryFromRectifiedGrid().
|
private |
Adds tie and scale to keyword list.
xpath0 | |
useGmlPrefix | If true tack on "gml:" to paths. |
geomKwl | Initialized by this. |
Definition at line 1338 of file ossimGmlSupportData.cpp.
References ossim::acosd(), ossimKeywordlist::add(), ossimString::afterPos(), ossimString::beforePos(), ossimString::c_str(), ossimString::clear(), ossimString::find(), ossimXmlDocument::findNodes(), m_xmlDocument, ossimKeywordNames::ORIGIN_LATITUDE_KW, ossimKeywordNames::PIXEL_SCALE_UNITS_KW, ossimKeywordNames::PIXEL_SCALE_XY_KW, status, ossimString::toFloat64(), ossimDpt::toString(), ossimRefPtr< T >::valid(), ossimDpt::x, and ossimDpt::y.
Referenced by getImageGeometryFromRectifiedGrid().
|
private |
Adds tie point to keyword list.
xpath0 | |
useGmlPrefix | If true tack on "gml:" to paths. |
geomKwl | Initialized by this. |
Definition at line 1242 of file ossimGmlSupportData.cpp.
References ossimKeywordlist::add(), ossimString::afterPos(), ossimString::beforePos(), ossimString::clear(), ossimString::find(), ossimXmlDocument::findNodes(), m_xmlDocument, status, ossimString::string(), ossimKeywordNames::TIE_POINT_UNITS_KW, ossimKeywordNames::TIE_POINT_XY_KW, and ossimRefPtr< T >::valid().
Referenced by getImageGeometryFromRectifiedGrid().
|
private |
Definition at line 377 of file ossimGmlSupportData.cpp.
References ossimXmlNode::addAttribute(), ossimXmlNode::addChildNode(), getGeoBounds(), m_axisLabelsStringGeo, m_srsDimensionString, m_srsNameStringGeo, m_uomLabelsStringGeo, and ossimXmlAttribute::setNameValue().
Referenced by configureGmljp2V2().
|
private |
Definition at line 183 of file ossimGmlSupportData.cpp.
References ossimXmlNode::addAttribute(), ossimXmlNode::addChildNode(), configureBounds(), ossimImageGeometry::getAsMapProjection(), getGeoOrigin(), getLimits(), getMapOrigin(), ossimMapProjection::isGeographic(), m_axisLabelsStringGeo, m_axisLabelsStringMap, m_srsNameStringGeo, m_srsNameStringMap, ossimXmlAttribute::setNameValue(), ossimIrect::ul(), and ossimRefPtr< T >::valid().
Referenced by initialize().
|
private |
Definition at line 1048 of file ossimGmlSupportData.cpp.
References ossimImageGeometry::getAsMapProjection(), ossimGpt::lat, ossimImageGeometry::localToWorld(), ossimGpt::lon, ossimIrect::lr(), os2, ossimIrect::ul(), and ossimRefPtr< T >::valid().
Referenced by configureBounds().
|
private |
Definition at line 971 of file ossimGmlSupportData.cpp.
References ossimImageGeometry::getDegreesPerPixel(), ossimGpt::lat, ossimImageGeometry::localToWorld(), ossimGpt::lon, os2, ossimDpt::x, and ossimDpt::y.
Referenced by configureGmljp2V2().
|
private |
Definition at line 486 of file ossimGmlSupportData.cpp.
References ossimXmlNode::addAttribute(), ossimXmlAttribute::setNameValue(), and ossimXmlNode::setTag().
Referenced by initialize().
|
private |
Definition at line 429 of file ossimGmlSupportData.cpp.
References ossimXmlNode::addAttribute(), ossimXmlAttribute::setNameValue(), and ossimXmlNode::setTag().
Referenced by initialize().
bool ossimGmlSupportData::getImageGeometry | ( | ossimKeywordlist & | geomKwl | ) | const |
Extracts geometry info to keyword list.
Populates the keyword list with image geometry information. This method is used to relay projection/model information to users.
geomKwl | Keyword list that will be initialized with geometry info. |
Definition at line 544 of file ossimGmlSupportData.cpp.
References getImageGeometryFromRectifiedGrid(), and getImageGeometryFromSeonsorModel().
|
private |
For map projected data:
geomKwl | Initialized by this. |
Definition at line 1117 of file ossimGmlSupportData.cpp.
References ossimKeywordlist::add(), addLineSamps(), addScale(), addTie(), ossimString::after(), ossimString::c_str(), ossimXmlDocument::findNodes(), ossimXmlAttribute::getValue(), m_xmlDocument, ossimKeywordNames::PCS_CODE_KW, ossimKeywordNames::SRS_NAME_KW, status, ossimString::string(), ossimString::toUInt32(), ossimKeywordNames::TYPE_KW, and ossimRefPtr< T >::valid().
Referenced by getImageGeometry().
|
private |
For sensor model data:
geomKwl | Initialized by this. |
Definition at line 1096 of file ossimGmlSupportData.cpp.
References ossimXmlDocument::findNodes(), m_xmlDocument, status, and ossimRefPtr< T >::valid().
Referenced by getImageGeometry().
|
private |
Definition at line 1078 of file ossimGmlSupportData.cpp.
References ossimIrect::hasNans(), ossimIrect::height(), and ossimIrect::width().
Referenced by configureGmljp2V2().
|
private |
Definition at line 1007 of file ossimGmlSupportData.cpp.
References ossimMapProjection::forward(), ossimImageGeometry::getAsMapProjection(), ossimImageGeometry::getMetersPerPixel(), ossimImageGeometry::localToWorld(), os2, ossimRefPtr< T >::valid(), ossimDpt::x, and ossimDpt::y.
Referenced by configureGmljp2V2().
ossimRefPtr< ossimXmlDocument > ossimGmlSupportData::getXmlDoc | ( | ) | const |
Definition at line 539 of file ossimGmlSupportData.cpp.
References m_xmlDocument.
bool ossimGmlSupportData::initialize | ( | const ossimImageGeometry * | geom, |
const ossimIrect & | rect | ||
) |
Initializes gml block from geometry file.
geom | |
rect | Output rectangle (view rect). |
Definition at line 78 of file ossimGmlSupportData.cpp.
References configureGmljp2V2(), ossimImageGeometry::getAsMapProjection(), getGmljp2V1RootNode(), getGmljp2V2RootNode(), ossimMapProjection::getPcsCode(), ossimXmlDocument::initRoot(), m_pcsCodeGeo, m_pcsCodeMap, m_srsNameStringGeo, m_srsNameStringMap, m_xmlDocument, ossimFilename::NIL, os2, ossimNotify(), ossimNotifyLevel_DEBUG, status, and ossimRefPtr< T >::valid().
Referenced by ossimOpjCompressor::writeGmlBox(), and ossimKakaduCompressor::writeGmlBox().
bool ossimGmlSupportData::initialize | ( | std::istream & | in | ) |
Initializes from stream assumed to be a gml block.
in |
Definition at line 60 of file ossimGmlSupportData.cpp.
References m_xmlDocument, ossimXmlDocument::read(), and status.
bool ossimGmlSupportData::write | ( | std::ostream & | os | ) |
Write xml doc to stream.
Definition at line 525 of file ossimGmlSupportData.cpp.
References ossimRefPtr< T >::get(), m_xmlDocument, status, and ossimRefPtr< T >::valid().
Referenced by ossimOpjCompressor::writeGmlBox(), and ossimKakaduCompressor::writeGmlBox().
|
private |
Definition at line 164 of file ossimGmlSupportData.h.
Referenced by configureBounds(), and configureGmljp2V2().
|
private |
Definition at line 163 of file ossimGmlSupportData.h.
Referenced by configureGmljp2V2().
|
private |
Definition at line 159 of file ossimGmlSupportData.h.
Referenced by initialize().
|
private |
Definition at line 158 of file ossimGmlSupportData.h.
Referenced by initialize().
|
private |
Definition at line 162 of file ossimGmlSupportData.h.
Referenced by configureBounds().
|
private |
Definition at line 161 of file ossimGmlSupportData.h.
Referenced by configureBounds(), configureGmljp2V2(), and initialize().
|
private |
Definition at line 160 of file ossimGmlSupportData.h.
Referenced by configureGmljp2V2(), and initialize().
|
private |
Definition at line 166 of file ossimGmlSupportData.h.
Referenced by configureBounds().
|
private |
Definition at line 165 of file ossimGmlSupportData.h.
|
private |
Definition at line 155 of file ossimGmlSupportData.h.
Referenced by addLineSamps(), addScale(), addTie(), getImageGeometryFromRectifiedGrid(), getImageGeometryFromSeonsorModel(), getXmlDoc(), initialize(), and write().