|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGpkgTileMatrixRecord.h>
Public Member Functions | |
| ossimGpkgTileMatrixRecord () | |
| default constructor More... | |
| ossimGpkgTileMatrixRecord (const ossimGpkgTileMatrixRecord &obj) | |
| const ossimGpkgTileMatrixRecord & | operator= (const ossimGpkgTileMatrixRecord &obj) |
| virtual | ~ossimGpkgTileMatrixRecord () |
| destructor More... | |
| virtual bool | init (sqlite3_stmt *pStmt) |
| Initialize from database. More... | |
| bool | init (const std::string &tableName, ossim_int32 zoom_level, const ossimIpt &matrixSize, const ossimIpt &tileSize, const ossimDpt &gsd) |
| Initialize method. 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 | getMatrixSize (ossimIpt &size) const |
| Get matrix size. More... | |
| void | getTileSize (ossimIpt &size) const |
| Get tile size. More... | |
| void | getGsd (ossimDpt &gsd) const |
| Get gsd. More... | |
Public Member Functions inherited from ossimGpkgDatabaseRecordBase | |
| ossimGpkgDatabaseRecordBase () | |
| default constructor More... | |
| virtual | ~ossimGpkgDatabaseRecordBase () |
| virtual destructor. More... | |
| virtual std::ostream & | print (std::ostream &out) const |
| Print method. More... | |
Public Member Functions inherited from ossimReferenced | |
| 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". More... | |
| static bool | createTable (sqlite3 *db) |
| Creates table in database. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
Definition at line 24 of file ossimGpkgTileMatrixRecord.h.
| ossimGpkgTileMatrixRecord::ossimGpkgTileMatrixRecord | ( | ) |
default constructor
Definition at line 26 of file ossimGpkgTileMatrixRecord.cpp.
| ossimGpkgTileMatrixRecord::ossimGpkgTileMatrixRecord | ( | const ossimGpkgTileMatrixRecord & | obj | ) |
Definition at line 40 of file ossimGpkgTileMatrixRecord.cpp.
|
virtual |
|
static |
Creates table in database.
| db |
Definition at line 97 of file ossimGpkgTileMatrixRecord.cpp.
References status, and ossim_sqlite::tableExists().
Referenced by ossimGpkgWriter::createTables().
| void ossimGpkgTileMatrixRecord::getGsd | ( | ossimDpt & | gsd | ) | const |
Get gsd.
| gsd | Initializes with pixel_x_size and pixel_y_size. |
Definition at line 308 of file ossimGpkgTileMatrixRecord.cpp.
References m_pixel_x_size, m_pixel_y_size, ossimDpt::x, and ossimDpt::y.
| void ossimGpkgTileMatrixRecord::getMatrixSize | ( | ossimIpt & | size | ) | const |
Get matrix size.
| size | Initialized with matrix_width and matrix_height. |
Definition at line 296 of file ossimGpkgTileMatrixRecord.cpp.
References m_matrix_height, m_matrix_width, and size.
|
static |
Get the table name "gpkg_tile_matrix".
Definition at line 158 of file ossimGpkgTileMatrixRecord.cpp.
Referenced by ossim_gpkg::getNewTableRecord(), ossim_gpkg::getTileEntries(), and ossim_gpkg::getTileEntry().
| void ossimGpkgTileMatrixRecord::getTileSize | ( | ossimIpt & | size | ) | const |
Get tile size.
| size | Initializes with tile_width and tile_height. |
Definition at line 302 of file ossimGpkgTileMatrixRecord.cpp.
References m_tile_height, m_tile_width, and size.
|
virtual |
Initialize from database.
| pStmt | SQL statement, i.e. result of sqlite3_prepare_v2(...) call. |
Implements ossimGpkgDatabaseRecordBase.
Definition at line 163 of file ossimGpkgTileMatrixRecord.cpp.
References m_matrix_height, m_matrix_width, m_pixel_x_size, m_pixel_y_size, m_table_name, m_tile_height, m_tile_width, m_zoom_level, ossimNotify(), ossimNotifyLevel_WARN, and status.
Referenced by ossimGpkgWriter::writeGpkgTileMatrixTable().
| bool ossimGpkgTileMatrixRecord::init | ( | const std::string & | tableName, |
| ossim_int32 | zoom_level, | ||
| const ossimIpt & | matrixSize, | ||
| const ossimIpt & | tileSize, | ||
| const ossimDpt & | gsd | ||
| ) |
Initialize method.
| tableName | e.g. "tiles" |
| Zoom | level. Zero being whole Earth... |
| matrixSize | Size of tile matrix, i.e. number of horizontal vertical tiles. |
| tileSize | Size of one tile, e.g. 256 x 256. |
| gsd | Size of one pixel either in meters or lat lon. |
Definition at line 71 of file ossimGpkgTileMatrixRecord.cpp.
References ossimIpt::hasNans(), ossimDpt::hasNans(), m_matrix_height, m_matrix_width, m_pixel_x_size, m_pixel_y_size, m_table_name, m_tile_height, m_tile_width, m_zoom_level, status, ossimIpt::x, ossimDpt::x, ossimIpt::y, and ossimDpt::y.
| bool ossimGpkgTileMatrixRecord::insert | ( | sqlite3 * | db | ) |
Inserst this record into gpkg_spatial_ref_sys table.
| db |
Definition at line 128 of file ossimGpkgTileMatrixRecord.cpp.
References ossim_sqlite::exec(), m_matrix_height, m_matrix_width, m_pixel_x_size, m_pixel_y_size, m_table_name, m_tile_height, m_tile_width, m_zoom_level, and status.
Referenced by ossimGpkgWriter::writeGpkgTileMatrixTable().
| const ossimGpkgTileMatrixRecord & ossimGpkgTileMatrixRecord::operator= | ( | const ossimGpkgTileMatrixRecord & | obj | ) |
Definition at line 54 of file ossimGpkgTileMatrixRecord.cpp.
References m_matrix_height, m_matrix_width, m_pixel_x_size, m_pixel_y_size, m_table_name, m_tile_height, m_tile_width, and m_zoom_level.
|
virtual |
Saves the state of object.
| kwl | Initialized by this. |
| prefix | e.g. "image0.". Can be empty. |
Implements ossimGpkgDatabaseRecordBase.
Definition at line 258 of file ossimGpkgTileMatrixRecord.cpp.
References ossimKeywordlist::addPair(), m_matrix_height, m_matrix_width, m_pixel_x_size, m_pixel_y_size, m_table_name, m_tile_height, m_tile_width, m_zoom_level, ossimString::string(), and ossimString::toString().
| ossim_int32 ossimGpkgTileMatrixRecord::m_matrix_height |
Definition at line 111 of file ossimGpkgTileMatrixRecord.h.
Referenced by getMatrixSize(), init(), insert(), operator=(), and saveState().
| ossim_int32 ossimGpkgTileMatrixRecord::m_matrix_width |
Definition at line 110 of file ossimGpkgTileMatrixRecord.h.
Referenced by getMatrixSize(), init(), insert(), operator=(), and saveState().
| ossim_float64 ossimGpkgTileMatrixRecord::m_pixel_x_size |
Definition at line 114 of file ossimGpkgTileMatrixRecord.h.
Referenced by getGsd(), init(), insert(), operator=(), and saveState().
| ossim_float64 ossimGpkgTileMatrixRecord::m_pixel_y_size |
Definition at line 115 of file ossimGpkgTileMatrixRecord.h.
Referenced by getGsd(), init(), insert(), operator=(), and saveState().
| std::string ossimGpkgTileMatrixRecord::m_table_name |
Definition at line 108 of file ossimGpkgTileMatrixRecord.h.
Referenced by init(), insert(), operator=(), and saveState().
| ossim_int32 ossimGpkgTileMatrixRecord::m_tile_height |
Definition at line 113 of file ossimGpkgTileMatrixRecord.h.
Referenced by getTileSize(), init(), insert(), operator=(), and saveState().
| ossim_int32 ossimGpkgTileMatrixRecord::m_tile_width |
Definition at line 112 of file ossimGpkgTileMatrixRecord.h.
Referenced by getTileSize(), init(), insert(), operator=(), and saveState().
| ossim_int32 ossimGpkgTileMatrixRecord::m_zoom_level |
Definition at line 109 of file ossimGpkgTileMatrixRecord.h.
Referenced by init(), insert(), operator=(), and saveState().
1.8.14