|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Utility/support data class to extract the projection from a dot aux dot xml file commonly found with mrsid data. More...
#include <ossimAuxXmlSupportData.h>
Public Member Functions | |
| ossimAuxXmlSupportData () | |
| default constructor More... | |
| virtual | ~ossimAuxXmlSupportData () |
| virtual destructor More... | |
| ossimRefPtr< ossimProjection > | getProjection (const ossimFilename &file) const |
| Method to get a projection if possible. More... | |
Private Member Functions | |
| bool | getPath (const ossimString &path, const ossimXmlDocument &xdoc, ossimString &s) const |
| Gets path from doc and initializes string. More... | |
| bool | initializeProjection (const ossimXmlDocument xdoc, const std::string &wkt, ossimProjection *proj) const |
| Sets tie and scale. More... | |
| bool | getProjcsName (const std::string &wkt, std::string &name) const |
| Get first parameter from PROJCS[ ... More... | |
| ossimUnitType | getUnits (const std::string &wkt) const |
| Gets units of Projected Coordinate System. More... | |
Utility/support data class to extract the projection from a dot aux dot xml file commonly found with mrsid data.
Definition at line 34 of file ossimAuxXmlSupportData.h.
| ossimAuxXmlSupportData::ossimAuxXmlSupportData | ( | ) |
|
virtual |
|
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 234 of file ossimAuxXmlSupportData.cpp.
References ossimXmlDocument::findNodes().
Referenced by getProjection().
|
private |
Get first parameter from PROJCS[ ...
] string.
| wkt | Well known tet string. |
| name | Initialized by this with name if found. |
Definition at line 287 of file ossimAuxXmlSupportData.cpp.
Referenced by getProjection().
| ossimRefPtr< ossimProjection > ossimAuxXmlSupportData::getProjection | ( | const ossimFilename & | file | ) | const |
Method to get a projection if possible.
| file | File name to open. |
Definition at line 45 of file ossimAuxXmlSupportData.cpp.
References ossimString::contains(), ossimProjectionFactoryRegistry::createProjection(), ossimRefPtr< T >::get(), getPath(), getProjcsName(), ossimString::gsub(), initializeProjection(), ossimProjectionFactoryRegistry::instance(), ossim::StreamFactoryRegistry::instance(), ossimXmlDocument::read(), ossimString::size(), ossimString::string(), ossimString::substitute(), and ossimRefPtr< T >::valid().
Referenced by ossimMrSidReader::getExternalImageGeometry().
|
private |
Gets units of Projected Coordinate System.
| wkt | Well known tet string. |
Definition at line 320 of file ossimAuxXmlSupportData.cpp.
References ossimString::contains(), ossimString::downcase(), OSSIM_DEGREES, OSSIM_FEET, OSSIM_UNIT_UNKNOWN, and OSSIM_US_SURVEY_FEET.
Referenced by initializeProjection().
|
private |
Sets tie and scale.
| xdoc | Xml document. |
| wkt | Well known tet string. |
Definition at line 104 of file ossimAuxXmlSupportData.cpp.
References ossimXmlDocument::findNodes(), getUnits(), ossimXmlAttribute::getValue(), ossimDpt::hasNans(), ossimMapProjection::isGeographic(), ossimDpt::makeNan(), MTRS_PER_FT, OSSIM_FEET, OSSIM_METERS, OSSIM_US_SURVEY_FEET, ossimNotify(), ossimNotifyLevel_WARN, ossimMapProjection::setDecimalDegreesPerPixel(), ossimMapProjection::setMetersPerPixel(), ossimMapProjection::setUlTiePoints(), ossimString::size(), size, ossimString::split(), ossimString::toFloat64(), US_METERS_PER_FT, ossimRefPtr< T >::valid(), ossimDpt::x, and ossimDpt::y.
Referenced by getProjection().
1.8.14