|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGpkgTileRecord.h>
Public Types | |
| enum | ossimGpkgTileType { OSSIM_GPKG_UNKNOWN = 0, OSSIM_GPKG_JPEG = 1, OSSIM_GPKG_PNG = 2 } |
Public Member Functions | |
| ossimGpkgTileRecord () | |
| default constructor More... | |
| ossimGpkgTileRecord (const ossimGpkgTileRecord &obj) | |
| const ossimGpkgTileRecord & | operator= (const ossimGpkgTileRecord &obj) |
| ~ossimGpkgTileRecord () | |
| destructor More... | |
| bool | init (sqlite3_stmt *pStmt) |
| Initialize from database. More... | |
| void | setCopyTileFlag (bool flag) |
| std::ostream & | print (std::ostream &out) const |
| Print method. More... | |
| void | getTileIndex (ossimIpt &index) const |
| Get tile index. More... | |
| ossimGpkgTileType | getTileType () const |
| std::string | getTileMediaType () const |
Static Public Member Functions | |
| static bool | createTable (sqlite3 *db, const std::string &tableName) |
| Creates table in database. More... | |
Public Attributes | |
| ossim_int32 | m_id |
| ossim_int32 | m_zoom_level |
| ossim_int32 | m_tile_column |
| ossim_int32 | m_tile_row |
| std::vector< ossim_uint8 > | m_tile_data |
| bool | m_copy_tile_flag |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const ossimGpkgTileRecord &obj) |
| Convenience operator << function. More... | |
Definition at line 25 of file ossimGpkgTileRecord.h.
| Enumerator | |
|---|---|
| OSSIM_GPKG_UNKNOWN | |
| OSSIM_GPKG_JPEG | |
| OSSIM_GPKG_PNG | |
Definition at line 29 of file ossimGpkgTileRecord.h.
| ossimGpkgTileRecord::ossimGpkgTileRecord | ( | ) |
default constructor
Definition at line 23 of file ossimGpkgTileRecord.cpp.
| ossimGpkgTileRecord::ossimGpkgTileRecord | ( | const ossimGpkgTileRecord & | obj | ) |
Definition at line 34 of file ossimGpkgTileRecord.cpp.
| ossimGpkgTileRecord::~ossimGpkgTileRecord | ( | ) |
|
static |
Creates table in database.
| db | |
| tableName | e.g. "tiles", "map_tiles" |
Definition at line 190 of file ossimGpkgTileRecord.cpp.
References ossim_sqlite::exec(), status, and ossim_sqlite::tableExists().
Referenced by ossimGpkgWriter::createTables().
| void ossimGpkgTileRecord::getTileIndex | ( | ossimIpt & | index | ) | const |
Get tile index.
| size | Initializes with tile_column and tile_row. |
Definition at line 254 of file ossimGpkgTileRecord.cpp.
References m_tile_column, m_tile_row, ossimIpt::x, and ossimIpt::y.
| std::string ossimGpkgTileRecord::getTileMediaType | ( | ) | const |
Definition at line 310 of file ossimGpkgTileRecord.cpp.
References getTileType(), OSSIM_GPKG_JPEG, and OSSIM_GPKG_PNG.
Referenced by print().
| ossimGpkgTileRecord::ossimGpkgTileType ossimGpkgTileRecord::getTileType | ( | ) | const |
Definition at line 260 of file ossimGpkgTileRecord.cpp.
References m_tile_data, OSSIM_GPKG_JPEG, OSSIM_GPKG_PNG, and OSSIM_GPKG_UNKNOWN.
Referenced by getTileMediaType(), and init().
| bool ossimGpkgTileRecord::init | ( | sqlite3_stmt * | pStmt | ) |
Initialize from database.
| pStmt | SQL statement, i.e. result of sqlite3_prepare_v2(...) call. |
Definition at line 64 of file ossimGpkgTileRecord.cpp.
References getTileType(), m_copy_tile_flag, m_id, m_tile_column, m_tile_data, m_tile_row, m_zoom_level, OSSIM_GPKG_JPEG, OSSIM_GPKG_PNG, ossimNotify(), ossimNotifyLevel_WARN, and status.
Referenced by ossim_gpkg::printTiles().
| const ossimGpkgTileRecord & ossimGpkgTileRecord::operator= | ( | const ossimGpkgTileRecord & | obj | ) |
Definition at line 45 of file ossimGpkgTileRecord.cpp.
References m_copy_tile_flag, m_id, m_tile_column, m_tile_data, m_tile_row, and m_zoom_level.
| std::ostream & ossimGpkgTileRecord::print | ( | std::ostream & | out | ) | const |
Print method.
Does not print the image blob.
| out | Stream to print to. |
Definition at line 222 of file ossimGpkgTileRecord.cpp.
References getTileMediaType(), m_id, m_tile_column, m_tile_data, m_tile_row, and m_zoom_level.
Referenced by operator<<().
| void ossimGpkgTileRecord::setCopyTileFlag | ( | bool | flag | ) |
Definition at line 217 of file ossimGpkgTileRecord.cpp.
References m_copy_tile_flag.
Referenced by ossim_gpkg::printTiles().
|
friend |
Convenience operator << function.
| out | Stream to print to. |
| obj | Object to print. |
Definition at line 248 of file ossimGpkgTileRecord.cpp.
| bool ossimGpkgTileRecord::m_copy_tile_flag |
Definition at line 100 of file ossimGpkgTileRecord.h.
Referenced by init(), operator=(), and setCopyTileFlag().
| ossim_int32 ossimGpkgTileRecord::m_id |
Definition at line 95 of file ossimGpkgTileRecord.h.
Referenced by init(), operator=(), and print().
| ossim_int32 ossimGpkgTileRecord::m_tile_column |
Definition at line 97 of file ossimGpkgTileRecord.h.
Referenced by getTileIndex(), init(), operator=(), and print().
| std::vector<ossim_uint8> ossimGpkgTileRecord::m_tile_data |
Definition at line 99 of file ossimGpkgTileRecord.h.
Referenced by getTileType(), init(), operator=(), print(), and ossimGpkgReader::uncompressPngTile().
| ossim_int32 ossimGpkgTileRecord::m_tile_row |
Definition at line 98 of file ossimGpkgTileRecord.h.
Referenced by getTileIndex(), init(), operator=(), and print().
| ossim_int32 ossimGpkgTileRecord::m_zoom_level |
Definition at line 96 of file ossimGpkgTileRecord.h.
Referenced by init(), operator=(), and print().
1.8.14