OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGpkgTileMatrixSetRecord.h>
Public Member Functions | |
ossimGpkgTileMatrixSetRecord () | |
default constructor More... | |
ossimGpkgTileMatrixSetRecord (const ossimGpkgTileMatrixSetRecord &obj) | |
const ossimGpkgTileMatrixSetRecord & | operator= (const ossimGpkgTileMatrixSetRecord &obj) |
virtual | ~ossimGpkgTileMatrixSetRecord () |
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. More... | |
void | getRect (ossimDrect &rect) const |
Gets the rectangle from bounds. More... | |
ossim_float64 | getWidth () const |
ossim_float64 | getHeight () const |
![]() | |
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_tile_matrix_set". More... | |
static bool | createTable (sqlite3 *db) |
Creates table in database. More... | |
Public Attributes | |
std::string | m_table_name |
ossim_int32 | m_srs_id |
ossim_float64 | m_min_x |
ossim_float64 | m_min_y |
ossim_float64 | m_max_x |
ossim_float64 | m_max_y |
Additional Inherited Members | |
![]() | |
virtual | ~ossimReferenced () |
Definition at line 24 of file ossimGpkgTileMatrixSetRecord.h.
ossimGpkgTileMatrixSetRecord::ossimGpkgTileMatrixSetRecord | ( | ) |
default constructor
Definition at line 26 of file ossimGpkgTileMatrixSetRecord.cpp.
ossimGpkgTileMatrixSetRecord::ossimGpkgTileMatrixSetRecord | ( | const ossimGpkgTileMatrixSetRecord & | obj | ) |
Definition at line 38 of file ossimGpkgTileMatrixSetRecord.cpp.
|
virtual |
|
static |
Creates table in database.
db |
Definition at line 177 of file ossimGpkgTileMatrixSetRecord.cpp.
References status, and ossim_sqlite::tableExists().
Referenced by ossimGpkgWriter::createTables().
ossim_float64 ossimGpkgTileMatrixSetRecord::getHeight | ( | ) | const |
Definition at line 240 of file ossimGpkgTileMatrixSetRecord.cpp.
References m_max_y, and m_min_y.
Referenced by ossimGpkgTileEntry::printValidate().
void ossimGpkgTileMatrixSetRecord::getRect | ( | ossimDrect & | rect | ) | const |
Gets the rectangle from bounds.
rect | Initialized by this. |
Definition at line 230 of file ossimGpkgTileMatrixSetRecord.cpp.
References m_max_x, m_max_y, m_min_x, m_min_y, and OSSIM_RIGHT_HANDED.
|
static |
Get the table name "gpkg_tile_matrix_set".
Definition at line 69 of file ossimGpkgTileMatrixSetRecord.cpp.
Referenced by ossim_gpkg::getNewTableRecord(), ossim_gpkg::getTileEntries(), and ossim_gpkg::getTileEntry().
ossim_float64 ossimGpkgTileMatrixSetRecord::getWidth | ( | ) | const |
Definition at line 235 of file ossimGpkgTileMatrixSetRecord.cpp.
References m_max_x, and m_min_x.
Referenced by ossimGpkgTileEntry::printValidate().
|
virtual |
Initialize from database.
pStmt | SQL statement, i.e. result of sqlite3_prepare_v2(...) call. |
Implements ossimGpkgDatabaseRecordBase.
Definition at line 74 of file ossimGpkgTileMatrixSetRecord.cpp.
References 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::writeGpkgTileMatrixSetTable().
bool ossimGpkgTileMatrixSetRecord::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 159 of file ossimGpkgTileMatrixSetRecord.cpp.
References ossimDpt::hasNans(), 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 ossimGpkgTileMatrixSetRecord::insert | ( | sqlite3 * | db | ) |
Inserst this record into gpkg_spatial_ref_sys table.
db |
Definition at line 206 of file ossimGpkgTileMatrixSetRecord.cpp.
References ossim_sqlite::exec(), m_max_x, m_max_y, m_min_x, m_min_y, m_srs_id, m_table_name, and status.
Referenced by ossimGpkgWriter::writeGpkgTileMatrixSetTable().
const ossimGpkgTileMatrixSetRecord & ossimGpkgTileMatrixSetRecord::operator= | ( | const ossimGpkgTileMatrixSetRecord & | obj | ) |
Definition at line 50 of file ossimGpkgTileMatrixSetRecord.cpp.
References 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.
kwl | Initialized by this. |
prefix | e.g. "image0.". Can be empty. |
Implements ossimGpkgDatabaseRecordBase.
Definition at line 245 of file ossimGpkgTileMatrixSetRecord.cpp.
References ossimKeywordlist::addPair(), m_max_x, m_max_y, m_min_x, m_min_y, m_srs_id, m_table_name, ossimString::string(), and ossimString::toString().
Referenced by ossimGpkgTileEntry::saveState().
ossim_float64 ossimGpkgTileMatrixSetRecord::m_max_x |
Definition at line 105 of file ossimGpkgTileMatrixSetRecord.h.
Referenced by ossimGpkgTileEntry::getNumberOfSamples(), getRect(), getWidth(), init(), insert(), operator=(), and saveState().
ossim_float64 ossimGpkgTileMatrixSetRecord::m_max_y |
Definition at line 106 of file ossimGpkgTileMatrixSetRecord.h.
Referenced by getHeight(), ossimGpkgTileEntry::getNumberOfLines(), getRect(), ossimGpkgTileEntry::getTiePoint(), init(), insert(), operator=(), and saveState().
ossim_float64 ossimGpkgTileMatrixSetRecord::m_min_x |
Definition at line 103 of file ossimGpkgTileMatrixSetRecord.h.
Referenced by ossimGpkgTileEntry::getNumberOfSamples(), getRect(), ossimGpkgTileEntry::getTiePoint(), getWidth(), init(), insert(), operator=(), and saveState().
ossim_float64 ossimGpkgTileMatrixSetRecord::m_min_y |
Definition at line 104 of file ossimGpkgTileMatrixSetRecord.h.
Referenced by getHeight(), ossimGpkgTileEntry::getNumberOfLines(), getRect(), init(), insert(), operator=(), and saveState().
ossim_int32 ossimGpkgTileMatrixSetRecord::m_srs_id |
Definition at line 102 of file ossimGpkgTileMatrixSetRecord.h.
Referenced by ossim_gpkg::getTileEntries(), init(), insert(), operator=(), and saveState().
std::string ossimGpkgTileMatrixSetRecord::m_table_name |
Definition at line 101 of file ossimGpkgTileMatrixSetRecord.h.
Referenced by ossim_gpkg::getTileEntries(), ossim_gpkg::getTileEntry(), init(), insert(), operator=(), and saveState().