Agroeye  1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
agroeye::handlers::Spatialite Class Reference

Encapsulation of Spatialite database. More...

#include <DatabaseSpatialite.h>

Collaboration diagram for agroeye::handlers::Spatialite:

Public Member Functions

 Spatialite ()
 
 Spatialite (const char *path, bool create=false)
 
 Spatialite (const char *path, CallbackFunction callbackFunc, bool create=false)
 
 Spatialite (const Spatialite &other)
 
 Spatialite (Spatialite &&other)
 
Spatialiteoperator= (const Spatialite &other)
 
Spatialiteoperator= (Spatialite &&other)
 
virtual ~Spatialite ()
 
void exec (const char *query)
 Performs query on database. More...
 
void exec (const char *query, bool silent)
 Performs query on database Allows to disabling the check of correctnes of query. More...
 
void exec (const char *query, SqliteCallback callback)
 Performs query on database Allows to retrive the information from database. More...
 
std::string getPath () const
 
void optimize ()
 
PreparedStatement createTables (std::string name, Raster raster, Parameters parameters)
 Creates tables from given parameters. More...
 
std::string proj4ToSrid (std::string proj4)
 Converts Proj4 sptial reference into SRID value_comp. More...
 

Detailed Description

Encapsulation of Spatialite database.

Constructor & Destructor Documentation

§ 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 
)
Here is the call graph for this function:

§ Spatialite() [4/5]

agroeye::handlers::Spatialite::Spatialite ( const Spatialite other)

§ Spatialite() [5/5]

agroeye::handlers::Spatialite::Spatialite ( Spatialite &&  other)
Here is the call graph for this function:

§ ~Spatialite()

agroeye::handlers::Spatialite::~Spatialite ( )
virtual

Member Function Documentation

§ createTables()

PreparedStatement agroeye::handlers::Spatialite::createTables ( std::string  name,
Raster  raster,
Parameters  parameters 
)

Creates tables from given parameters.

Prepares database for saving the results of segmenting image

Parameters
nameName of the segmentation
rasterSegmented Raster
parametersSegmentation parameters
Returns
Statement ready for insertions
Here is the call graph for this function:
Here is the caller graph for this function:

§ exec() [1/3]

void agroeye::handlers::Spatialite::exec ( const char *  query)

Performs query on database.

Parameters
queryThe SQL query
Here is the caller graph for this function:

§ 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
queryThe SQL query
sillentIf TRUE, results are not checked
Here is the call graph for this function:

§ 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
queryThe SQL query
callbackCallback function retriving data

§ getPath()

std::string agroeye::handlers::Spatialite::getPath ( ) const
inline
Here is the call graph for this function:

§ operator=() [1/2]

Spatialite & agroeye::handlers::Spatialite::operator= ( const Spatialite other)

§ operator=() [2/2]

Spatialite & agroeye::handlers::Spatialite::operator= ( Spatialite &&  other)
Here is the call graph for this function:

§ optimize()

void agroeye::handlers::Spatialite::optimize ( )

Returns path to the database Sets on database optimizations for fast inserting

Here is the call graph for this function:
Here is the caller graph for this function:

§ 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
proj4String with Proj4 definition
Returns
SRID value
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: