Loading...
Searching...
No Matches
VectorToVectorOp.h
Go to the documentation of this file.
1/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3 This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5 TerraLib is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 TerraLib is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with TerraLib. See COPYING. If not, write to
17 TerraLib Team at <terralib-team@terralib.org>.
18 */
19
20/*!
21 \file VectorToVectorOp.h
22
23 \brief Vector To Vector operation.
24
25 \ingroup attributefill
26 */
27
28#ifndef __TERRALIB_ATTRIBUTEFILL_INTERNAL_VECTORTOVECTOROP_H
29#define __TERRALIB_ATTRIBUTEFILL_INTERNAL_VECTORTOVECTOROP_H
30
31//Terralib
33
35
37
38#include "../memory/DataSet.h"
40
41#include "Config.h"
42#include "Enums.h"
43
44// STL
45#include <map>
46#include <memory>
47#include <string>
48#include <vector>
49
50namespace te
51{
52 namespace attributefill
53 {
55 {
56 public:
57
59
61
62 virtual bool run() = 0;
63
64 virtual bool paramsAreValid();
65
68
69 void setParams(const std::map<std::string, std::vector<te::attributefill::OperationType> >& options, std::vector<std::string> toLayerProps);
70
71 void setOutput(te::da::DataSourcePtr outDsrc, std::string dsName);
72
73 bool hasErrors();
74
75 protected:
76
77 bool save(std::unique_ptr<te::mem::DataSet> result, std::unique_ptr<te::da::DataSetType> outDsType);
78
79 protected:
80
82
85
86 std::map<std::string, std::vector<te::attributefill::OperationType> > m_options;
87 std::vector<std::string> m_toLayerProps;
88
90 std::string m_outDset;
91 };
92 }
93}
94#endif // __TERRALIB_ATTRIBUTEFILL_INTERNAL_VECTORTOVECTOROP_H
This is the base class for Layers.
It models a property definition.
std::map< std::string, std::vector< te::attributefill::OperationType > > m_options
te::map::AbstractLayerPtr m_fromLayer
void setInput(te::map::AbstractLayerPtr fromLayer, te::map::AbstractLayerPtr toLayer)
void setParams(const std::map< std::string, std::vector< te::attributefill::OperationType > > &options, std::vector< std::string > toLayerProps)
void setOutput(te::da::DataSourcePtr outDsrc, std::string dsName)
te::map::AbstractLayerPtr m_toLayer
bool save(std::unique_ptr< te::mem::DataSet > result, std::unique_ptr< te::da::DataSetType > outDsType)
std::vector< std::string > m_toLayerProps
An abstract class for data providers like a DBMS, Web Services or a regular file.
Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver.
boost::shared_ptr< DataSource > DataSourcePtr
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
TerraLib.
Enumerations related to Vector Processing module.
Configuration flags for the Attribute Fill module of TerraLib.
#define TEATTRIBUTEFILLEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition Config.h:61