OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGpkgContentsRecord.h>
Public Member Functions | |
ossimGpkgContentsRecord () | |
default constructor More... | |
ossimGpkgContentsRecord (const ossimGpkgContentsRecord &obj) | |
const ossimGpkgContentsRecord & | operator= (const ossimGpkgContentsRecord ©_this) |
virtual | ~ossimGpkgContentsRecord () |
destructor More... | |
virtual bool | init (sqlite3_stmt *pStmt) |
Initialize from database. More... | |
bool | init (const std::string &tableName, ossim_int32 srs_id, const ossimDpt &minPt, const ossimDpt &maxPt) |
Initialize from projection. More... | |
bool | insert (sqlite3 *db) |
Inserst this record into gpkg_spatial_ref_sys table. More... | |
virtual void | saveState (ossimKeywordlist &kwl, const std::string &prefix) const |
Saves the state of object to keyword list. 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_contents". More... | |
static bool | createTable (sqlite3 *db) |
Creates table in database. More... | |
Public Attributes | |
std::string | m_table_name |
std::string | m_data_type |
std::string | m_identifier |
std::string | m_description |
std::string | m_last_change |
ossim_float64 | m_min_x |
ossim_float64 | m_min_y |
ossim_float64 | m_max_x |
ossim_float64 | m_max_y |
ossim_int32 | m_srs_id |
Additional Inherited Members | |
![]() | |
virtual | ~ossimReferenced () |
Definition at line 24 of file ossimGpkgContentsRecord.h.
ossimGpkgContentsRecord::ossimGpkgContentsRecord | ( | ) |
default constructor
Definition at line 25 of file ossimGpkgContentsRecord.cpp.
ossimGpkgContentsRecord::ossimGpkgContentsRecord | ( | const ossimGpkgContentsRecord & | obj | ) |
Definition at line 41 of file ossimGpkgContentsRecord.cpp.
|
virtual |
|
static |
Creates table in database.
db |
Definition at line 219 of file ossimGpkgContentsRecord.cpp.
References status, and ossim_sqlite::tableExists().
Referenced by ossimGpkgWriter::createTables().
|
static |
Get the table name "gpkg_contents".
Definition at line 80 of file ossimGpkgContentsRecord.cpp.
Referenced by ossim_gpkg::getNewTableRecord().
|
virtual |
Initialize from database.
pStmt | SQL statement, i.e. result of sqlite3_prepare_v2(...) call. |
Implements ossimGpkgDatabaseRecordBase.
Definition at line 85 of file ossimGpkgContentsRecord.cpp.
References m_data_type, m_description, m_identifier, m_last_change, m_max_x, m_max_y, m_min_x, m_min_y, m_srs_id, m_table_name, ossimNotify(), ossimNotifyLevel_WARN, and status.
Referenced by ossimGpkgWriter::writeGpkgContentsTable().
bool ossimGpkgContentsRecord::init | ( | const std::string & | tableName, |
ossim_int32 | srs_id, | ||
const ossimDpt & | minPt, | ||
const ossimDpt & | maxPt | ||
) |
Initialize from projection.
tableName | e.g. "tiles" |
srs_id | ID of gpkg_spatial_ref_sys record our projection is relative to. |
minPt | Minimum bounds in either Easting Northin or lat lon. |
maxPt | Maximum bounds in either Easting Northin or lat lon. * |
Definition at line 194 of file ossimGpkgContentsRecord.cpp.
References ossim_sqlite::getTime(), ossimDpt::hasNans(), m_data_type, m_description, m_identifier, m_last_change, m_max_x, m_max_y, m_min_x, m_min_y, m_srs_id, m_table_name, status, ossimDpt::x, and ossimDpt::y.
bool ossimGpkgContentsRecord::insert | ( | sqlite3 * | db | ) |
Inserst this record into gpkg_spatial_ref_sys table.
db |
Definition at line 259 of file ossimGpkgContentsRecord.cpp.
References ossim_sqlite::exec(), m_data_type, m_description, m_identifier, m_last_change, m_max_x, m_max_y, m_min_x, m_min_y, m_srs_id, m_table_name, and status.
Referenced by ossimGpkgWriter::writeGpkgContentsTable().
const ossimGpkgContentsRecord & ossimGpkgContentsRecord::operator= | ( | const ossimGpkgContentsRecord & | copy_this | ) |
Definition at line 57 of file ossimGpkgContentsRecord.cpp.
References m_data_type, m_description, m_identifier, m_last_change, m_max_x, m_max_y, m_min_x, m_min_y, m_srs_id, and m_table_name.
|
virtual |
Saves the state of object to keyword list.
kwl | Initialized by this. |
prefix | e.g. "image0.". Can be empty. |
Implements ossimGpkgDatabaseRecordBase.
Definition at line 287 of file ossimGpkgContentsRecord.cpp.
References ossimKeywordlist::addPair(), m_data_type, m_description, m_identifier, m_last_change, m_max_x, m_max_y, m_min_x, m_min_y, m_srs_id, m_table_name, ossimString::string(), and ossimString::toString().
std::string ossimGpkgContentsRecord::m_data_type |
Definition at line 89 of file ossimGpkgContentsRecord.h.
Referenced by init(), insert(), operator=(), and saveState().
std::string ossimGpkgContentsRecord::m_description |
Definition at line 91 of file ossimGpkgContentsRecord.h.
Referenced by init(), insert(), operator=(), and saveState().
std::string ossimGpkgContentsRecord::m_identifier |
Definition at line 90 of file ossimGpkgContentsRecord.h.
Referenced by init(), insert(), operator=(), and saveState().
std::string ossimGpkgContentsRecord::m_last_change |
Definition at line 92 of file ossimGpkgContentsRecord.h.
Referenced by init(), insert(), operator=(), and saveState().
ossim_float64 ossimGpkgContentsRecord::m_max_x |
Definition at line 95 of file ossimGpkgContentsRecord.h.
Referenced by init(), insert(), operator=(), and saveState().
ossim_float64 ossimGpkgContentsRecord::m_max_y |
Definition at line 96 of file ossimGpkgContentsRecord.h.
Referenced by init(), insert(), operator=(), and saveState().
ossim_float64 ossimGpkgContentsRecord::m_min_x |
Definition at line 93 of file ossimGpkgContentsRecord.h.
Referenced by init(), insert(), operator=(), and saveState().
ossim_float64 ossimGpkgContentsRecord::m_min_y |
Definition at line 94 of file ossimGpkgContentsRecord.h.
Referenced by init(), insert(), operator=(), and saveState().
ossim_int32 ossimGpkgContentsRecord::m_srs_id |
Definition at line 97 of file ossimGpkgContentsRecord.h.
Referenced by init(), insert(), operator=(), and saveState().
std::string ossimGpkgContentsRecord::m_table_name |
Definition at line 88 of file ossimGpkgContentsRecord.h.
Referenced by init(), insert(), operator=(), and saveState().