|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Class for FGDC XML doc parsing. More...
#include <ossimFgdcXmlDoc.h>
Public Member Functions | |
| ossimFgdcXmlDoc () | |
| default constructor More... | |
| ~ossimFgdcXmlDoc () | |
| destructor More... | |
| bool | open (const ossimFilename &xmlFileName) |
| Open method. More... | |
| bool | isOpen () const |
| void | close () |
| close method. More... | |
| ossimRefPtr< ossimProjection > | getProjection () |
| Gets projection from document. More... | |
| ossimUnitType | getUnitType () const |
| bool | getGeoCsn (ossimString &s) const |
| bool | getProjCsn (ossimString &s) const |
| bool | getAltitudeDistantUnits (ossimString &s) const |
| Get the Altitude Distance Units. More... | |
| bool | getGridCoordinateSystem (ossimString &s) const |
| Get the Grid Coordinate system. More... | |
| ossimRefPtr< ossimProjection > | getGridCoordSysProjection () |
| Gets projection from Grid Coordinate system node. More... | |
| bool | getHorizontalDatum (ossimString &s) const |
| Get the Grid Coordinate system. More... | |
| bool | getPlanarDistantUnits (ossimString &s) const |
| Get the Planar Distant Units. More... | |
| bool | getUtmFalseNorthing (ossimString &s) const |
| Get UTM false Northing. More... | |
| bool | getUtmZone (ossimString &s) const |
| Get UTM zone. More... | |
| ossim_uint32 | getNumberOfBands () |
| Get Bands. More... | |
| bool | getPath (const ossimString &path, ossimString &s) const |
| Gets path from doc and initializes string. More... | |
| bool | getImageSize (ossimIpt &size) const |
Private Member Functions | |
| bool | getXRes (ossim_float64 &v) const |
| bool | getYRes (ossim_float64 &v) const |
| void | getBoundingBox (ossimDrect &rect) const |
| bool | getPath (const ossimString &path, ossim_float64 &v) const |
| Gets path from doc and initializes string. More... | |
| const ossimDatum * | createOssimDatum (const ossimString &s) const |
| Gets the ossimDatum from string. More... | |
Private Attributes | |
| ossimFilename | m_xmlFilename |
| ossimRefPtr< ossimXmlDocument > | m_xmlDocument |
| ossimRefPtr< ossimProjection > | m_projection |
| bool | m_boundInDegree |
Class for FGDC XML doc parsing.
Definition at line 27 of file ossimFgdcXmlDoc.h.
| ossimFgdcXmlDoc::ossimFgdcXmlDoc | ( | ) |
default constructor
Definition at line 30 of file ossimFgdcXmlDoc.cpp.
| ossimFgdcXmlDoc::~ossimFgdcXmlDoc | ( | ) |
| void ossimFgdcXmlDoc::close | ( | ) |
close method.
Definition at line 63 of file ossimFgdcXmlDoc.cpp.
References m_projection, m_xmlDocument, m_xmlFilename, and ossimFilename::NIL.
Referenced by open().
|
private |
Gets the ossimDatum from string.
Definition at line 525 of file ossimFgdcXmlDoc.cpp.
References ossimDatumFactoryRegistry::create(), ossimString::downcase(), ossimDatumFactoryRegistry::instance(), and ossimString::string().
| bool ossimFgdcXmlDoc::getAltitudeDistantUnits | ( | ossimString & | s | ) | const |
Get the Altitude Distance Units.
Path: "/metadata/spref/vertdef/altsys/altunits"
Domain: "meters" "feet"
Definition at line 170 of file ossimFgdcXmlDoc.cpp.
References getPath().
|
private |
Definition at line 375 of file ossimFgdcXmlDoc.cpp.
References getPath(), isOpen(), m_boundInDegree, ossimDrect::makeNan(), and OSSIM_RIGHT_HANDED.
Referenced by getProjection().
| bool ossimFgdcXmlDoc::getGeoCsn | ( | ossimString & | s | ) | const |
Definition at line 158 of file ossimFgdcXmlDoc.cpp.
References getPath().
| bool ossimFgdcXmlDoc::getGridCoordinateSystem | ( | ossimString & | s | ) | const |
Get the Grid Coordinate system.
Path: "/metadata/spref/horizsys/planar/gridsys/gridsysn"
Definition at line 176 of file ossimFgdcXmlDoc.cpp.
References getPath().
| ossimRefPtr< ossimProjection > ossimFgdcXmlDoc::getGridCoordSysProjection | ( | ) |
Gets projection from Grid Coordinate system node.
Throws ossimException on error.
Definition at line 182 of file ossimFgdcXmlDoc.cpp.
Referenced by ossimGeneralRasterTileSource::getImageGeometry().
| bool ossimFgdcXmlDoc::getHorizontalDatum | ( | ossimString & | s | ) | const |
Get the Grid Coordinate system.
Path: "/metadata/spref/horizsys/planar/gridsys/gridsysn"
Definition at line 295 of file ossimFgdcXmlDoc.cpp.
References getPath().
| bool ossimFgdcXmlDoc::getImageSize | ( | ossimIpt & | size | ) | const |
Definition at line 339 of file ossimFgdcXmlDoc.cpp.
References ossimXmlDocument::findNodes(), getPath(), m_xmlDocument, size, ossimRefPtr< T >::valid(), x, and y.
Referenced by ossimGeneralRasterTileSource::getXmlInfo(), and ossimGeneralRasterInfo::initializeFromXml().
| ossim_uint32 ossimFgdcXmlDoc::getNumberOfBands | ( | ) |
Get Bands.
Path: "/metadata/spdoinfo/rastinfo/vrtcount"
the maximum number of raster objects along the vertical (z) axis. For use with rectangular volumetric raster objects (voxels).
Definition at line 449 of file ossimFgdcXmlDoc.cpp.
References getPath(), and ossimString::toInt().
Referenced by ossimGeneralRasterTileSource::getXmlInfo(), and ossimGeneralRasterInfo::initializeFromXml().
| bool ossimFgdcXmlDoc::getPath | ( | const ossimString & | path, |
| ossimString & | s | ||
| ) | const |
Gets path from doc and initializes string.
This method errors if multiple nodes are found for path.
| path | Xml path to look for. |
| s | String to initialize. |
Definition at line 461 of file ossimFgdcXmlDoc.cpp.
References ossimXmlDocument::findNodes(), m_xmlDocument, and ossimRefPtr< T >::valid().
Referenced by getAltitudeDistantUnits(), getBoundingBox(), getGeoCsn(), getGridCoordinateSystem(), getHorizontalDatum(), getImageSize(), getNumberOfBands(), getPath(), getPlanarDistantUnits(), getProjCsn(), getUtmFalseNorthing(), getUtmZone(), ossimGeneralRasterTileSource::getXmlInfo(), getXRes(), getYRes(), and ossimGeneralRasterInfo::initializeFromXml().
|
private |
Gets path from doc and initializes string.
| path | Xml path to look for. |
| v | Value to initialize. |
Definition at line 514 of file ossimFgdcXmlDoc.cpp.
References getPath(), and ossimString::toFloat64().
| bool ossimFgdcXmlDoc::getPlanarDistantUnits | ( | ossimString & | s | ) | const |
Get the Planar Distant Units.
Path: "/metadata/spref/horizsys/planar/planci/plandu"
Domain: "meters" "international feet" "survey feet"
Definition at line 301 of file ossimFgdcXmlDoc.cpp.
References getPath().
Referenced by getUnitType().
| bool ossimFgdcXmlDoc::getProjCsn | ( | ossimString & | s | ) | const |
Definition at line 164 of file ossimFgdcXmlDoc.cpp.
References getPath().
Referenced by getProjection().
| ossimRefPtr< ossimProjection > ossimFgdcXmlDoc::getProjection | ( | ) |
Gets projection from document.
Definition at line 70 of file ossimFgdcXmlDoc.cpp.
References ossimEpsgProjectionFactory::createProjection(), ossimString::empty(), ossimRefPtr< T >::get(), getBoundingBox(), getProjCsn(), getUnitType(), getXRes(), getYRes(), ossimEpsgProjectionFactory::instance(), ossimMapProjection::isGeographic(), isOpen(), ossimDpt::lat, ossimDpt::lon, m_projection, ossimDpt::makeNan(), MTRS_PER_FT, OSSIM_FEET, OSSIM_US_SURVEY_FEET, ossimMapProjection::setDecimalDegreesPerPixel(), ossimMapProjection::setMetersPerPixel(), ossimMapProjection::setUlTiePoints(), ossimDrect::ul(), US_METERS_PER_FT, ossimRefPtr< T >::valid(), ossimDpt::x, and ossimDpt::y.
Referenced by ossimGdalTileSource::getExternalImageGeometryFromXml(), ossimGeneralRasterTileSource::getImageGeometry(), and ossimGdalOgrVectorAnnotation::loadExternalImageGeometryFromXml().
| ossimUnitType ossimFgdcXmlDoc::getUnitType | ( | ) | const |
Definition at line 131 of file ossimFgdcXmlDoc.cpp.
References ossimString::contains(), ossimString::downcase(), getPlanarDistantUnits(), OSSIM_FEET, OSSIM_METERS, and OSSIM_US_SURVEY_FEET.
Referenced by getProjection().
| bool ossimFgdcXmlDoc::getUtmFalseNorthing | ( | ossimString & | s | ) | const |
Get UTM false Northing.
Path: "/metadata/spref/horizsys/planar/gridsys/utm/transmer/fnorth"
Definition at line 307 of file ossimFgdcXmlDoc.cpp.
References getPath().
| bool ossimFgdcXmlDoc::getUtmZone | ( | ossimString & | s | ) | const |
Get UTM zone.
Path: "/metadata/spref/horizsys/planar/gridsys/utm/utmzone"
Domain: 1 <= UTM Zone Number <= 60 for the northern hemisphere; -60 <= UTM Zone Number <= -1 for the southern hemisphere
Definition at line 313 of file ossimFgdcXmlDoc.cpp.
References getPath().
|
private |
Definition at line 319 of file ossimFgdcXmlDoc.cpp.
References getPath().
Referenced by getProjection().
|
private |
Definition at line 329 of file ossimFgdcXmlDoc.cpp.
References getPath().
Referenced by getProjection().
| bool ossimFgdcXmlDoc::isOpen | ( | ) | const |
Definition at line 153 of file ossimFgdcXmlDoc.cpp.
References m_xmlDocument, and ossimRefPtr< T >::valid().
Referenced by getBoundingBox(), getProjection(), and open().
| bool ossimFgdcXmlDoc::open | ( | const ossimFilename & | xmlFileName | ) |
Open method.
Definition at line 42 of file ossimFgdcXmlDoc.cpp.
References close(), isOpen(), m_xmlDocument, m_xmlFilename, ossimString::size(), and ossimRefPtr< T >::valid().
Referenced by ossimGdalTileSource::getExternalImageGeometryFromXml(), ossimGeneralRasterTileSource::getImageGeometry(), ossimGeneralRasterTileSource::getXmlInfo(), ossimGeneralRasterInfo::initializeFromXml(), and ossimGdalOgrVectorAnnotation::loadExternalImageGeometryFromXml().
|
mutableprivate |
Definition at line 185 of file ossimFgdcXmlDoc.h.
Referenced by getBoundingBox().
|
private |
Definition at line 184 of file ossimFgdcXmlDoc.h.
Referenced by close(), and getProjection().
|
private |
Definition at line 183 of file ossimFgdcXmlDoc.h.
Referenced by close(), getImageSize(), getPath(), isOpen(), and open().
|
private |
Definition at line 182 of file ossimFgdcXmlDoc.h.
1.8.14