27 #include "../../Config.h" 43 #include <QApplication> 44 #include <QGridLayout> 46 #include <QMessageBox> 53 int main(
int argc,
char** argv)
65 QStringList ithemes = QIcon::themeSearchPaths();
67 QIcon::setThemeName(
"terralib");
68 QIcon::setThemeSearchPaths(ithemes);
71 std::string fileName = TERRALIB_DATA_DIR
"/shp/munic_2001.shp";
79 if(w.exec() == QDialog::Accepted)
87 dlg.setFixedSize(600, 300);
89 QGridLayout* layout =
new QGridLayout(&dlg);
93 layout->addWidget(&tv);
105 catch(
const std::exception& e)
107 std::string msg =
"An exception has occurred: ";
110 QMessageBox::warning(0,
"Query Example", msg.c_str());
116 std::string msg =
"An unexpected exception has occurred!";
118 QMessageBox::warning(0,
"Query Example", msg.c_str());
Include files for Core Plugin Library.
boost::shared_ptr< DataSource > DataSourcePtr
A Qt dialog that allows users to create query builder based on TerraLib query framework.
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
te::da::DataSourcePtr LoadPGISDataSource(const std::string &dsId)
static te::dt::Date ds(2010, 01, 01)
Proxy file for the real global configuration of TerraLib examples.
static PluginManager & instance()
Access the singleton.
A table view for a dataset.
void finalize()
It finalizes the TerraLib Platform.
static TerraLib & getInstance()
It returns a reference to the singleton instance.
Several examples declarations.
A Select models a query to be used when retrieving data from a data source.
A Select models a query to be used when retrieving data from a DataSource.
void initialize()
It initializes the TerraLib Platform.
A dataset is the unit of information manipulated by the data access module of TerraLib.
int main(int argc, char **argv)
TECOREEXPORT std::string FindInTerraLibPath(const std::string &path)
Returns the path relative to a directory or file in the context of TerraLib.
This file contains include headers for the TerraLib Common Runtime module.
A dataset is the unit of information manipulated by the data access module of TerraLib.
void clear()
Stop and unload all plugins, then clear the internal list of plugins.
void LoadModules()
Load terralib modules.
A Qt dialog that allows users to create query builder based on TerraLib query framework.
te::da::DataSet * GetDataSet(te::da::Select &s, te::da::DataSourcePtr &ds)