OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
Projection Factory for coded projections defined in database. More...
#include <ossimEpsgProjectionFactory.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 ossimProjection * | createProjection (const ossimKeywordlist &kwl, const char *prefix=0) const |
Looks for presence of "pcs_code" keyword with the value in the format <group>:, for example "EPSG:32615" (EPSG and AUTO–see above– are presently supported). 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 ossimEpsgProjectionFactory * | instance () |
Implements singleton pattern. More... | |
Protected Member Functions | |
ossimEpsgProjectionFactory () | |
Constructor loads all SRS CSV files specified in the ossim prefs. More... | |
ossimMapProjection * | createProjFromAutoCode (const std::vector< ossimString > &spec) const |
When the CRS is specified with the "AUTO:<spec>" code format, this method is invoked to parse the <spec> and produce a projection (or NULL if spec invalid): This really shouldn't be in this class but nobody else is parsing for it, so leave it here for now. More... | |
![]() | |
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 () |
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 ossimEpsgProjectionFactory.h.
|
protected |
Constructor loads all SRS CSV files specified in the ossim prefs.
Protected as part of singleton implementation.
Definition at line 41 of file ossimEpsgProjectionFactory.cpp.
|
virtual |
Creates an object given a type name.
Implements ossimObjectFactory.
Definition at line 176 of file ossimEpsgProjectionFactory.cpp.
References createProjection().
|
virtual |
Creates and object given a keyword list.
Implements ossimObjectFactory.
Definition at line 182 of file ossimEpsgProjectionFactory.cpp.
References createProjection().
|
virtual |
STUB. Not implemented.
Implements ossimProjectionFactoryBase.
Definition at line 191 of file ossimEpsgProjectionFactory.cpp.
Referenced by createObject(), createProjection(), ossimPointCloudImageHandler::getImageGeometry(), ossimGpkgTileEntry::getNewMapProjection(), ossimGpkgWriter::getNewOutputProjection(), ossimTiffInfo::getPcsCode(), ossimFgdcXmlDoc::getProjection(), ossimGeoPdfReader::getVPGeoProjection(), and ossimGeoTiff::parsePcsCode().
|
virtual |
This is the principal factory method.
It accepts a string in one of three formats:
, for example "EPSG:32615"
, for example "32615", this is the CRS code ID for the projerection.
AUTO:<comma-separated spec>, for specifying custom user-defined codes.
Both projected and geographic (Platte Carre) codes are handled.
Implements ossimProjectionFactoryBase.
Definition at line 96 of file ossimEpsgProjectionFactory.cpp.
References ossimString::after(), createProjFromAutoCode(), ossimString::explode(), ossimEpsgProjectionDatabase::findProjection(), ossimEpsgProjectionDatabase::instance(), and ossimString::trim().
|
virtual |
Looks for presence of "pcs_code" keyword with the value in the format <group>:, for example "EPSG:32615" (EPSG and AUTO–see above– are presently supported).
From keywordlist.
If only an integer is specified, EPSG code is assumed.
Implements ossimProjectionFactoryBase.
Definition at line 48 of file ossimEpsgProjectionFactory.cpp.
References ossimKeywordlist::addList(), createProjection(), ossimString::empty(), ossimKeywordlist::find(), ossimProjection::loadState(), ossimKeywordNames::PCS_CODE_KW, ossimKeywordNames::PIXEL_SCALE_UNITS_KW, ossimKeywordNames::PIXEL_SCALE_XY_KW, ossimKeywordNames::PROJECTION_KW, ossimKeywordlist::remove(), ossimProjection::saveState(), ossimKeywordNames::TIE_POINT_UNITS_KW, and ossimKeywordNames::TIE_POINT_XY_KW.
|
protected |
When the CRS is specified with the "AUTO:<spec>" code format, this method is invoked to parse the <spec> and produce a projection (or NULL if spec invalid): This really shouldn't be in this class but nobody else is parsing for it, so leave it here for now.
When the CRS is specified with the "AUTO:<spec>" code format, this method is invoked to parse the <spec> and produce a projection (or NULL if spec invalid):
Definition at line 121 of file ossimEpsgProjectionFactory.cpp.
References ossimGpt::latd(), ossimGpt::lond(), ossimTransMercatorProjection::setFalseNorthing(), ossimUtmProjection::setHemisphere(), ossimUtmProjection::setOrigin(), ossimEquDistCylProjection::setOrigin(), ossimMapProjection::setOrigin(), ossimTransMercatorProjection::setScaleFactor(), ossimUtmProjection::setZone(), ossimUtmProjection::update(), ossimTransMercatorProjection::update(), ossimOrthoGraphicProjection::update(), and ossimEquDistCylProjection::update().
Referenced by createProjection().
|
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 201 of file ossimEpsgProjectionFactory.cpp.
References ossimEpsgProjectionDatabase::getProjectionsList(), and ossimEpsgProjectionDatabase::instance().
|
static |
Implements singleton pattern.
METHOD: instance() Instantiates singleton instance of this class:
Definition at line 27 of file ossimEpsgProjectionFactory.cpp.
Referenced by ossimPointCloudImageHandler::getImageGeometry(), ossimGpkgTileEntry::getNewMapProjection(), ossimGpkgWriter::getNewOutputProjection(), ossimTiffInfo::getPcsCode(), ossimFgdcXmlDoc::getProjection(), ossimGeoPdfReader::getVPGeoProjection(), ossimProjectionFactoryRegistry::initializeDefaults(), and ossimGeoTiff::parsePcsCode().