OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGpkgSpatialRefSysRecord.h>
Public Types | |
enum | InitCode { ERROR = -1, OK_EXISTS = 0, OK = 1 } |
Public Member Functions | |
ossimGpkgSpatialRefSysRecord () | |
default constructor More... | |
ossimGpkgSpatialRefSysRecord (const ossimGpkgSpatialRefSysRecord &obj) | |
const ossimGpkgSpatialRefSysRecord & | operator= (const ossimGpkgSpatialRefSysRecord &obj) |
virtual | ~ossimGpkgSpatialRefSysRecord () |
destructor More... | |
virtual bool | init (sqlite3_stmt *pStmt) |
Initialize from database. More... | |
InitCode | init (sqlite3 *db, const ossimMapProjection *proj) |
Initialize from projection. More... | |
bool | insert (sqlite3 *db) |
Inserst this record into gpkg_contents table. More... | |
virtual void | saveState (ossimKeywordlist &kwl, const std::string &prefix) const |
Saves the state of object. More... | |
ossim_int32 | getSrsId (sqlite3 *db) |
Looks in database for matching record and returns the id if found. More... | |
ossim_int32 | getNextSrsId (sqlite3 *db) |
Looks in database for matching record and returns the id if found. More... | |
![]() | |
ossimGpkgDatabaseRecordBase () | |
default constructor More... | |
virtual | ~ossimGpkgDatabaseRecordBase () |
virtual destructor. More... | |
virtual std::ostream & | print (std::ostream &out) const |
Print method. 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 |
Static Public Member Functions | |
static const std::string & | getTableName () |
Get the table name "gpkg_spatial_ref_sys". More... | |
static bool | createTable (sqlite3 *db) |
Creates gpkg_contents table in database. More... | |
Public Attributes | |
std::string | m_srs_name |
ossim_int32 | m_srs_id |
std::string | m_organization |
ossim_int32 | m_organization_coordsys_id |
std::string | m_definition |
std::string | m_description |
Additional Inherited Members | |
![]() | |
virtual | ~ossimReferenced () |
Definition at line 23 of file ossimGpkgSpatialRefSysRecord.h.
ossimGpkgSpatialRefSysRecord::ossimGpkgSpatialRefSysRecord | ( | ) |
default constructor
Definition at line 39 of file ossimGpkgSpatialRefSysRecord.cpp.
ossimGpkgSpatialRefSysRecord::ossimGpkgSpatialRefSysRecord | ( | const ossimGpkgSpatialRefSysRecord & | obj | ) |
Definition at line 51 of file ossimGpkgSpatialRefSysRecord.cpp.
|
virtual |
|
static |
Creates gpkg_contents table in database.
db |
Definition at line 307 of file ossimGpkgSpatialRefSysRecord.cpp.
References status, and ossim_sqlite::tableExists().
Referenced by ossimGpkgWriter::createTables().
ossim_int32 ossimGpkgSpatialRefSysRecord::getNextSrsId | ( | sqlite3 * | db | ) |
Looks in database for matching record and returns the id if found.
db |
Definition at line 440 of file ossimGpkgSpatialRefSysRecord.cpp.
Referenced by init().
ossim_int32 ossimGpkgSpatialRefSysRecord::getSrsId | ( | sqlite3 * | db | ) |
Looks in database for matching record and returns the id if found.
db |
Definition at line 408 of file ossimGpkgSpatialRefSysRecord.cpp.
References m_organization, and m_organization_coordsys_id.
Referenced by init().
|
static |
Get the table name "gpkg_spatial_ref_sys".
Definition at line 82 of file ossimGpkgSpatialRefSysRecord.cpp.
Referenced by ossim_gpkg::getNewTableRecord(), ossim_gpkg::getSrsRecord(), and ossim_gpkg::getTileEntries().
|
virtual |
Initialize from database.
pStmt | SQL statement, i.e. result of sqlite3_prepare_v2(...) call. |
Implements ossimGpkgDatabaseRecordBase.
Definition at line 87 of file ossimGpkgSpatialRefSysRecord.cpp.
References m_definition, m_description, m_organization, m_organization_coordsys_id, m_srs_id, m_srs_name, ossimNotify(), ossimNotifyLevel_WARN, and status.
Referenced by ossimGpkgWriter::writeGpkgSpatialRefSysTable().
ossimGpkgSpatialRefSysRecord::InitCode ossimGpkgSpatialRefSysRecord::init | ( | sqlite3 * | db, |
const ossimMapProjection * | proj | ||
) |
Initialize from projection.
db | |
proj | Output map projection. |
Definition at line 176 of file ossimGpkgSpatialRefSysRecord.cpp.
References ossimDatum::code(), ERROR, ossimObject::getClassName(), ossimMapProjection::getDatum(), ossimUtmProjection::getHemisphere(), getNextSrsId(), ossimMapProjection::getPcsCode(), getSrsId(), ossimUtmProjection::getZone(), ossimGpt::lond(), m_definition, m_description, m_organization, m_organization_coordsys_id, m_srs_id, m_srs_name, OK, OK_EXISTS, ossimMapProjection::origin(), ossimNotify(), ossimNotifyLevel_WARN, ossimString::string(), and ossimString::toString().
bool ossimGpkgSpatialRefSysRecord::insert | ( | sqlite3 * | db | ) |
Inserst this record into gpkg_contents table.
db |
Definition at line 359 of file ossimGpkgSpatialRefSysRecord.cpp.
References ossim_sqlite::exec(), m_definition, m_description, m_organization, m_organization_coordsys_id, m_srs_id, m_srs_name, and status.
Referenced by ossimGpkgWriter::writeGpkgSpatialRefSysTable().
const ossimGpkgSpatialRefSysRecord & ossimGpkgSpatialRefSysRecord::operator= | ( | const ossimGpkgSpatialRefSysRecord & | obj | ) |
Definition at line 63 of file ossimGpkgSpatialRefSysRecord.cpp.
References m_definition, m_description, m_organization, m_organization_coordsys_id, m_srs_id, and m_srs_name.
|
virtual |
Saves the state of object.
kwl | Initialized by this. |
prefix | e.g. "image0.". Can be empty. |
Implements ossimGpkgDatabaseRecordBase.
Definition at line 381 of file ossimGpkgSpatialRefSysRecord.cpp.
References ossimKeywordlist::addPair(), m_definition, m_description, m_organization, m_organization_coordsys_id, m_srs_id, m_srs_name, ossimString::string(), and ossimString::toString().
Referenced by ossimGpkgTileEntry::saveState().
std::string ossimGpkgSpatialRefSysRecord::m_definition |
Definition at line 107 of file ossimGpkgSpatialRefSysRecord.h.
Referenced by init(), insert(), operator=(), and saveState().
std::string ossimGpkgSpatialRefSysRecord::m_description |
Definition at line 108 of file ossimGpkgSpatialRefSysRecord.h.
Referenced by init(), insert(), operator=(), and saveState().
std::string ossimGpkgSpatialRefSysRecord::m_organization |
Definition at line 105 of file ossimGpkgSpatialRefSysRecord.h.
Referenced by ossimGpkgTileEntry::getNewMapProjection(), getSrsId(), init(), insert(), operator=(), and saveState().
ossim_int32 ossimGpkgSpatialRefSysRecord::m_organization_coordsys_id |
Definition at line 106 of file ossimGpkgSpatialRefSysRecord.h.
Referenced by ossimGpkgWriter::addLevels(), ossimGpkgTileEntry::getNewMapProjection(), getSrsId(), init(), insert(), operator=(), and saveState().
ossim_int32 ossimGpkgSpatialRefSysRecord::m_srs_id |
Definition at line 104 of file ossimGpkgSpatialRefSysRecord.h.
Referenced by init(), insert(), operator=(), saveState(), and ossimGpkgWriter::writeGpkgSpatialRefSysTable().
std::string ossimGpkgSpatialRefSysRecord::m_srs_name |
Definition at line 103 of file ossimGpkgSpatialRefSysRecord.h.
Referenced by init(), insert(), operator=(), and saveState().