OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Projection Factory for coded projections defined in database. More...
#include <ossimWktProjectionFactory.h>
Public Member Functions | |
virtual ossimProjection * | createProjection (const ossimFilename &filename, ossim_uint32 entryIdx) const |
STUB. Not implemented. More... | |
virtual ossimProjection * | createProjection (const ossimString &name) const |
This is the principal factory method. More... | |
virtual ossim_uint32 | getCode (const ossimString &name) |
virtual ossimProjection * | createProjection (const ossimKeywordlist &kwl, const char *prefix=0) const |
Looks for presence of "projection" keyword with the value in WKT format, for example "Anguilla_1957_British_West_Indies_Grid". More... | |
virtual ossimObject * | createObject (const ossimString &typeName) const |
virtual ossimObject * | createObject (const ossimKeywordlist &kwl, const char *prefix=0) const |
virtual void | getTypeNameList (std::vector< ossimString > &typeList) const |
This returns the type name of all objects in all factories. More... | |
![]() | |
virtual ossimProjection * | createProjection (ossimImageHandler *handler) const |
![]() | |
virtual | ~ossimObjectFactory () |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () const |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getDescription () const |
virtual ossimString | getClassName () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
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 |
Static Public Member Functions | |
static ossimWktProjectionFactory * | instance () |
Implements singleton pattern. More... | |
Protected Member Functions | |
ossimWktProjectionFactory () | |
Constructor loads the WKT CSV file specified in the ossim prefs with "wkt_database_file" keyword. More... | |
ossimProjection * | doTransverseMercator (const ossimKeywordlist &kwl) const |
ossimProjection * | doMercator (const ossimKeywordlist &kwl) const |
ossimProjection * | doLambertConformalConic (const ossimKeywordlist &kwl) const |
ossimProjection * | doEquiDistCylindrical (const ossimKeywordlist &kwl) const |
ossimProjection * | doEquiAreaCylindrical (const ossimKeywordlist &kwl) const |
void | loadRecords () const |
Loads all SRS CSV files specified in the ossim prefs. More... | |
template<class T > | |
void | doMapCommon (const ossimKeywordlist &kwl, T proj) const |
![]() | |
ossimProjection * | createProjectionFromGeometryFile (const ossimFilename &imageFile, ossim_uint32 entryIdx) const |
This method takes the filename and tries to find an external ".geom" file. More... | |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
std::map< std::string, ossim_uint32 > | m_wktProjRecords |
Static Protected Attributes | |
static ossimWktProjectionFactory * | m_instance = 0 |
Singleton implementation. More... | |
Projection Factory for coded projections defined in database.
These are projections that are fully defined in database files and specified via a projection coordinate system (PCS) code, such as EPSG codes.
Definition at line 27 of file ossimWktProjectionFactory.h.
|
inlineprotected |
Constructor loads the WKT CSV file specified in the ossim prefs with "wkt_database_file" keyword.
Definition at line 61 of file ossimWktProjectionFactory.h.
Referenced by instance().
|
virtual |
Creates an object given a type name.
Implements ossimObjectFactory.
Definition at line 298 of file ossimWktProjectionFactory.cpp.
References createProjection().
|
virtual |
Creates and object given a keyword list.
Implements ossimObjectFactory.
Definition at line 304 of file ossimWktProjectionFactory.cpp.
References createProjection().
|
virtual |
STUB. Not implemented.
Implements ossimProjectionFactoryBase.
Definition at line 313 of file ossimWktProjectionFactory.cpp.
Referenced by createObject(), createProjection(), and ossimPointCloudGeometry::ossimPointCloudGeometry().
|
virtual |
This is the principal factory method.
It accepts a WKT string, for example "Anguilla_1957_British_West_Indies_Grid"
Implements ossimProjectionFactoryBase.
Definition at line 286 of file ossimWktProjectionFactory.cpp.
References createProjection(), ossimWkt::getKwl(), and ossimWkt::parse().
|
virtual |
Looks for presence of "projection" keyword with the value in WKT format, for example "Anguilla_1957_British_West_Indies_Grid".
From keywordlist (as generated typically by ossimWkt class)
Implements ossimProjectionFactoryBase.
Definition at line 206 of file ossimWktProjectionFactory.cpp.
References ossimString::contains(), doEquiAreaCylindrical(), doEquiDistCylindrical(), doLambertConformalConic(), doMercator(), doTransverseMercator(), ossimString::downcase(), ossimString::empty(), ossimKeywordlist::find(), ossimEpsgProjectionDatabase::findProjection(), ossimString::gsub(), ossimEpsgProjectionDatabase::instance(), loadRecords(), m_wktProjRecords, ossimString::string(), ossimKeywordlist::stripPrefixFromAll(), ossimString::toString(), ossimString::toUInt32(), and ossimString::trim().
|
protected |
|
protected |
|
protected |
Definition at line 395 of file ossimWktProjectionFactory.cpp.
References ossimString::find(), ossimLambertConformalConicProjection::setStandardParallel1(), ossimLambertConformalConicProjection::setStandardParallel2(), ossimString::toDouble(), and ossimString::toString().
Referenced by createProjection().
|
protected |
Definition at line 441 of file ossimWktProjectionFactory.cpp.
References ossimString::contains(), ossimEpsgDatumFactory::create(), ossimString::empty(), ossimKeywordlist::find(), ossimEpsgDatumFactory::instance(), ossimGpt::lat, ossimGpt::lon, MTRS_PER_FT, OSSIM_FEET, ossimString::toDouble(), ossimString::toString(), and ossimString::toUInt32().
|
protected |
Definition at line 366 of file ossimWktProjectionFactory.cpp.
References ossimString::find(), ossimMercatorProjection::setScaleFactor(), ossimString::toDouble(), and ossimString::toString().
Referenced by createProjection().
|
protected |
Definition at line 337 of file ossimWktProjectionFactory.cpp.
References ossimString::find(), ossimTransMercatorProjection::setScaleFactor(), ossimString::toDouble(), and ossimString::toString().
Referenced by createProjection().
|
virtual |
Definition at line 187 of file ossimWktProjectionFactory.cpp.
References loadRecords(), m_wktProjRecords, and ossimString::string().
|
virtual |
This returns the type name of all objects in all factories.
This is the name used to construct the objects dynamically and this name must be unique.
Implements ossimObjectFactory.
Definition at line 323 of file ossimWktProjectionFactory.cpp.
References loadRecords(), and m_wktProjRecords.
|
static |
Implements singleton pattern.
METHOD: instance() Instantiates singleton instance of this class:
Definition at line 75 of file ossimWktProjectionFactory.cpp.
References m_instance, and ossimWktProjectionFactory().
Referenced by ossimProjectionFactoryRegistry::initializeDefaults(), and ossimPointCloudGeometry::ossimPointCloudGeometry().
|
protected |
Loads all SRS CSV files specified in the ossim prefs.
Definition at line 85 of file ossimWktProjectionFactory.cpp.
References ossimString::chars(), ossimFilename::dirCat(), getline(), ossimPreferences::instance(), ossimFilename::isReadable(), ossimFilename::isRelative(), ossimPreferences::preferencesKWL(), ossimString::size(), ossimString::string(), and ossimString::trim().
Referenced by createProjection(), getCode(), and getTypeNameList().
|
staticprotected |
Singleton implementation.
Definition at line 73 of file ossimWktProjectionFactory.h.
Referenced by instance().
|
mutableprotected |
Definition at line 74 of file ossimWktProjectionFactory.h.
Referenced by createProjection(), getCode(), and getTypeNameList().