OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Support data container for FGDC in text format. More...
#include <ossimFgdcTxtDoc.h>
Public Member Functions | |
ossimFgdcTxtDoc () | |
default constructor More... | |
virtual | ~ossimFgdcTxtDoc () |
virtual destructor More... | |
bool | open (const ossimFilename &file) |
open method. More... | |
void | close () |
Close method. More... | |
void | getProjection (ossimRefPtr< ossimProjection > &proj) |
Gets projection from Spatial_Reference_Information block. More... | |
void | getAltitudeDistanceUnits (std::string &units) const |
Gets units from Altitude_Distance_Units. 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 | |
void | getProjectionV1 (std::ifstream &str, ossimRefPtr< ossimProjection > &proj) |
Gets projection from Spatial_Reference_Information block for version FGDC-STD-001-1998. More... | |
bool | findKey (std::ifstream &str, const std::string &key) |
Finds key and returns true if present. More... | |
bool | findKey (std::ifstream &str, bool seekBack, const std::string &key, std::string &value) |
Finds key and returns and intializes value if present. More... | |
void | getOssimDatum (const std::string &fgdcDatumString, std::string &ossimDatumCode) const |
Gets ossim datum string from fgdc datum string. More... | |
Private Attributes | |
ossimRefPtr< ossimKeywordlist > | m_kwl |
Additional Inherited Members | |
![]() | |
virtual | ~ossimReferenced () |
Support data container for FGDC in text format.
Has minimum parse support to get Spatial_Reference_Information section to extract projection information.
TODO: Make an ossimFgdcBase and consolidate code from ossimFgdcXmlDoc and this class. (drb - 15 Aug. 2011)
Definition at line 38 of file ossimFgdcTxtDoc.h.
ossimFgdcTxtDoc::ossimFgdcTxtDoc | ( | ) |
|
virtual |
void ossimFgdcTxtDoc::close | ( | ) |
Close method.
This doesn't really do anything. Here only because I think every open() should have a matching close().
Definition at line 77 of file ossimFgdcTxtDoc.cpp.
References ossimKeywordlist::clear(), and m_kwl.
|
private |
Finds key and returns true if present.
Leaves stream at position of last getline.
str | Stream to read from. |
key | Key to find. |
Definition at line 208 of file ossimFgdcTxtDoc.cpp.
References getline(), ossimString::size(), ossimString::string(), and ossimString::trim().
Referenced by getProjectionV1(), and open().
|
private |
Finds key and returns and intializes value if present.
Stream position at end of call is dependent on seekBack flag.
str | Stream to read from. |
seekBack | If true the stream will be repositioned to original position at beginning of the call. |
key | Key to find. |
value | Intialized with value if key is found. |
Definition at line 230 of file ossimFgdcTxtDoc.cpp.
References ossimString::clear(), getline(), ossimString::size(), size, ossimString::split(), ossimString::string(), and ossimString::trim().
void ossimFgdcTxtDoc::getAltitudeDistanceUnits | ( | std::string & | units | ) | const |
Gets units from Altitude_Distance_Units.
Definition at line 120 of file ossimFgdcTxtDoc.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
|
private |
Gets ossim datum string from fgdc datum string.
Definition at line 282 of file ossimFgdcTxtDoc.cpp.
References ossimString::downcase(), and ossimString::string().
Referenced by getProjectionV1().
void ossimFgdcTxtDoc::getProjection | ( | ossimRefPtr< ossimProjection > & | proj | ) |
Gets projection from Spatial_Reference_Information block.
proj | Intialized by this method. Set to null on projection cannot be created. |
Definition at line 82 of file ossimFgdcTxtDoc.cpp.
References ossimKeywordlist::findKey(), and m_kwl.
|
private |
Gets projection from Spatial_Reference_Information block for version FGDC-STD-001-1998.
str | Stream to read from. |
proj | Intialized by this method. Set to null on projection cannot be created. |
Definition at line 125 of file ossimFgdcTxtDoc.cpp.
References ossimKeywordlist::addPair(), ossimMapProjectionFactory::createProjection(), findKey(), getOssimDatum(), ossimKeywordlist::getSize(), ossimMapProjectionFactory::instance(), and ossimString::toFloat64().
bool ossimFgdcTxtDoc::open | ( | const ossimFilename & | file | ) |
open method.
file | File name to open. |
Definition at line 45 of file ossimFgdcTxtDoc.cpp.
References ossimString::c_str(), and findKey().
|
private |
Definition at line 125 of file ossimFgdcTxtDoc.h.
Referenced by close(), getAltitudeDistanceUnits(), getProjection(), and ~ossimFgdcTxtDoc().