Encapsulation of Spatialite database.  
 More...
#include <DatabaseSpatialite.h>
Encapsulation of Spatialite database. 
§ Spatialite() [1/5]
      
        
          | agroeye::handlers::Spatialite::Spatialite | ( |  | ) |  | 
      
 
Default constructor initializing database in RAM memory 
 
 
§ Spatialite() [2/5]
      
        
          | agroeye::handlers::Spatialite::Spatialite | ( | const char * | path, | 
        
          |  |  | bool | create = false | 
        
          |  | ) |  |  | 
      
 
 
§ Spatialite() [3/5]
      
        
          | agroeye::handlers::Spatialite::Spatialite | ( | const char * | path, | 
        
          |  |  | CallbackFunction | callbackFunc, | 
        
          |  |  | bool | create = false | 
        
          |  | ) |  |  | 
      
 
 
§ Spatialite() [4/5]
      
        
          | agroeye::handlers::Spatialite::Spatialite | ( | const Spatialite & | other | ) |  | 
      
 
 
§ Spatialite() [5/5]
      
        
          | agroeye::handlers::Spatialite::Spatialite | ( | Spatialite && | other | ) |  | 
      
 
 
§ ~Spatialite()
  
  | 
        
          | agroeye::handlers::Spatialite::~Spatialite | ( |  | ) |  |  | virtual | 
 
 
§ createTables()
Creates tables from given parameters. 
Prepares database for saving the results of segmenting image 
- Parameters
- 
  
    | name | Name of the segmentation |  | raster | Segmented Raster |  | parameters | Segmentation parameters |  
 
- Returns
- Statement ready for insertions 
 
 
§ exec() [1/3]
      
        
          | void agroeye::handlers::Spatialite::exec | ( | const char * | query | ) |  | 
      
 
Performs query on database. 
- Parameters
- 
  
  
 
 
§ exec() [2/3]
      
        
          | void agroeye::handlers::Spatialite::exec | ( | const char * | query, | 
        
          |  |  | bool | silent | 
        
          |  | ) |  |  | 
      
 
Performs query on database Allows to disabling the check of correctnes of query. 
- Parameters
- 
  
    | query | The SQL query |  | sillent | If TRUE, results are not checked |  
 
 
 
§ exec() [3/3]
      
        
          | void agroeye::handlers::Spatialite::exec | ( | const char * | query, | 
        
          |  |  | SqliteCallback | callback | 
        
          |  | ) |  |  | 
      
 
Performs query on database Allows to retrive the information from database. 
- Parameters
- 
  
    | query | The SQL query |  | callback | Callback function retriving data |  
 
 
 
§ getPath()
  
  | 
        
          | std::string agroeye::handlers::Spatialite::getPath | ( |  | ) | const |  | inline | 
 
 
§ operator=() [1/2]
§ operator=() [2/2]
§ optimize()
      
        
          | void agroeye::handlers::Spatialite::optimize | ( |  | ) |  | 
      
 
Returns path to the database Sets on database optimizations for fast inserting 
 
 
§ proj4ToSrid()
      
        
          | std::string agroeye::handlers::Spatialite::proj4ToSrid | ( | std::string | proj4 | ) |  | 
      
 
Converts Proj4 sptial reference into SRID value_comp. 
Tries to find matchin SRID number. If it failes return -1 value. 
- Parameters
- 
  
    | proj4 | String with Proj4 definition |  
 
- Returns
- SRID value 
 
 
The documentation for this class was generated from the following files: