#include "../Config.h"#include "DataAccessExamples.h"#include <terralib/common.h>#include <terralib/dataaccess.h>#include <terralib/datatype.h>#include <terralib/geometry.h>#include <terralib/memory.h>#include <terralib/raster.h>#include <terralib/srs.h>#include <terralib/dataaccess/datasource/DataSourceFactory.h>#include <terralib/dataaccess/datasource/DataSourceManager.h>#include <iostream>#include <memory>#include <vector>#include <string>#include <boost/foreach.hpp>Go to the source code of this file.
Functions | |
| te::da::DataSet * | create_ds_memory (const std::string &datasetName, te::da::DataSetType *datasettype) |
| void | ExportingOGR () |
| An example using OGR data source driver to export some ;. More... | |
| void | openDirectory (const std::string &filename, const std::string dstype) |
| void | openFile (const std::string &filename, const std::string dstype) |
| void | saveUsingOGR (const std::string &filename, const std::string drivername) |
| te::da::DataSet * create_ds_memory | ( | const std::string & | datasetName, |
| te::da::DataSetType * | datasettype | ||
| ) |
Definition at line 130 of file ExportingOGR.cpp.
References te::mem::DataSet::add(), te::dt::AbstractData::clone(), DataSet(), ds, te::mem::DataSetItem::setDateTime(), te::mem::DataSetItem::setGeometry(), te::mem::DataSetItem::setInt32(), and te::mem::DataSetItem::setNumeric().
Referenced by saveUsingOGR().
| void ExportingOGR | ( | ) |
An example using OGR data source driver to export some ;.
Definition at line 31 of file ExportingOGR.cpp.
References openDirectory(), and saveUsingOGR().
Referenced by main().
| void openDirectory | ( | const std::string & | filename, |
| const std::string | dstype | ||
| ) |
Definition at line 70 of file ExportingOGR.cpp.
References te::da::DataSourceFactory::make().
Referenced by ExportingOGR().
| void openFile | ( | const std::string & | filename, |
| const std::string | dstype | ||
| ) |
Definition at line 50 of file ExportingOGR.cpp.
References te::da::DataSourceFactory::make().
Referenced by te::qt::widgets::FileChooser::onChooseFileToolButtonClicked().
| void saveUsingOGR | ( | const std::string & | filename, |
| const std::string | drivername | ||
| ) |
Definition at line 90 of file ExportingOGR.cpp.
References te::da::Create(), create_ds_memory(), te::dt::DATE, dt, te::dt::INT32_TYPE, te::da::DataSourceFactory::make(), te::gm::PointType, te::dt::SimpleProperty::setAutoNumber(), and te::gm::GeometryProperty::setSRID().
Referenced by ExportingOGR().