OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimGpkgTileMatrixRecord.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // File: ossimGpkgTileMatrixRecord.h
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 // Description: Container class for gpkg_tile_matrix table.
10 //
11 //----------------------------------------------------------------------------
12 // $Id$
13 
14 #ifndef ossimGpkgTileMatrixRecord_HEADER
15 #define ossimGpkgTileMatrixRecord_HEADER 1
16 
19 
20 class ossimDpt;
21 class ossimIpt;
22 struct sqlite3;
23 
25 {
26 public:
27 
30 
31  /* @brief copy constructor */
33 
34  /* @brief assignment operator= */
35  const ossimGpkgTileMatrixRecord& operator=
36  (const ossimGpkgTileMatrixRecord& obj);
37 
40 
45  static const std::string& getTableName();
46 
51  virtual bool init( sqlite3_stmt* pStmt );
52 
63  bool init( const std::string& tableName,
64  ossim_int32 zoom_level,
65  const ossimIpt& matrixSize,
66  const ossimIpt& tileSize,
67  const ossimDpt& gsd );
68 
74  static bool createTable( sqlite3* db );
75 
81  bool insert( sqlite3* db );
82 
88  virtual void saveState( ossimKeywordlist& kwl,
89  const std::string& prefix ) const;
90 
95  void getMatrixSize( ossimIpt& size ) const;
96 
101  void getTileSize( ossimIpt& size ) const;
102 
106  void getGsd( ossimDpt& gsd ) const;
107 
108  std::string m_table_name;
116 };
117 
118 #endif /* #ifndef ossimGpkgTileMatrixRecord_HEADER */
virtual void saveState(ossimKeywordlist &kwl, const std::string &prefix) const
Saves the state of object.
Represents serializable keyword/value map.
static const std::string & getTableName()
Get the table name "gpkg_tile_matrix".
bool insert(sqlite3 *db)
Inserst this record into gpkg_spatial_ref_sys table.
void getGsd(ossimDpt &gsd) const
Get gsd.
ossimGpkgTileMatrixRecord()
default constructor
double ossim_float64
virtual bool init(sqlite3_stmt *pStmt)
Initialize from database.
void getMatrixSize(ossimIpt &size) const
Get matrix size.
yy_size_t size
virtual ~ossimGpkgTileMatrixRecord()
destructor
void getTileSize(ossimIpt &size) const
Get tile size.
static bool createTable(sqlite3 *db)
Creates table in database.
int ossim_int32