It copy a DataSet. More...
#include "ADOExamples.h"#include <terralib/common.h>#include <terralib/dataaccess/datasource/DataSourceFactory.h>#include <terralib/dataaccess/utils/Utils.h>#include <iostream>Go to the source code of this file.
Functions | |
| void | Copy (std::string dataSetName, std::unique_ptr< te::da::DataSource > inDs, te::da::DataSource *outDs) |
| void | CopyFromShapeFile (te::da::DataSource *ds) |
| It copies a shapefile to the given datasource. More... | |
| void | CreateDataSource (std::string name) |
It copy a DataSet.
Definition in file CopyDataSet.cpp.
| void Copy | ( | std::string | dataSetName, |
| std::unique_ptr< te::da::DataSource > | inDs, | ||
| te::da::DataSource * | outDs | ||
| ) |
Definition at line 68 of file CopyDataSet.cpp.
References te::da::Create().
Referenced by te::rst::Copy(), CopyFromShapeFile(), and te::rst::CreateCopy().
| void CopyFromShapeFile | ( | te::da::DataSource * | ds | ) |
It copies a shapefile to the given datasource.
| ds | The data source you want to copy the data to. |
Definition at line 81 of file CopyDataSet.cpp.
References Copy(), ds, and te::da::DataSourceFactory::make().
Referenced by main().
| void CreateDataSource | ( | std::string | name | ) |
Definition at line 37 of file CopyDataSet.cpp.
References te::da::DataSource::create().