Union.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 Union.h
22 
23 \brief Union operation.
24 
25 \ingroup vp
26 */
27 
28 #ifndef __TERRALIB_VP_INTERNAL_UNION_H
29 #define __TERRALIB_VP_INTERNAL_UNION_H
30 
31 //Terralib
32 
33 #include "../dataaccess/dataset/DataSetType.h"
34 #include "../datatype/Property.h"
35 
36 #include "Algorithm.h"
37 #include "AlgorithmParams.h"
38 #include "Config.h"
39 
40 namespace te
41 {
42  namespace vp
43  {
44  class TEVPEXPORT Union : public Algorithm
45  {
46  public:
47 
48  Union();
49 
50  virtual ~Union() {}
51 
53 
55 
56  protected:
57  std::vector<std::pair<std::string, std::string> > getProperties(
58  const std::map<std::string, te::dt::AbstractData*>& specificParams);
59 
61  const std::map<std::string, te::dt::AbstractData*>& specificParams);
62 
64  te::vp::AlgorithmParams* mainParams);
65 
67 
68  std::vector<te::dt::Property*> getFirstSelectedProperties(
69  const te::da::DataSetType* dataSetType,
70  const std::map<std::string, te::dt::AbstractData*>& specificParams);
71 
72  std::vector<te::dt::Property*> getSecondSelectedProperties(
73  const te::da::DataSetType* dataSetType,
74  const std::map<std::string, te::dt::AbstractData*>& specificParams);
75 
77  const te::gm::GeomType& secondGeom,
78  const bool& isCollection);
79 
80  private:
81 
82  std::map<std::string, std::string> m_firstAttrNameMap;
83 
84  std::map<std::string, std::string> m_secondAttrNameMap;
85 
86  };
87  }
88 }
89 #endif // __TERRALIB_VP_INTERNAL_UNION_H
te::vp::Union::getSecondSelectedProperties
std::vector< te::dt::Property * > getSecondSelectedProperties(const te::da::DataSetType *dataSetType, const std::map< std::string, te::dt::AbstractData * > &specificParams)
te
TerraLib.
Definition: AddressGeocodingOp.h:52
te::vp::Union::setGeomAsMulti
te::gm::Geometry * setGeomAsMulti(te::gm::Geometry *geom)
te::vp::Union::getGeomResultType
te::gm::GeomType getGeomResultType(const te::gm::GeomType &firstGeom, const te::gm::GeomType &secondGeom, const bool &isCollection)
te::vp::Union::executeQuery
bool executeQuery(te::vp::AlgorithmParams *mainParams)
te::vp::Union::m_secondAttrNameMap
std::map< std::string, std::string > m_secondAttrNameMap
Definition: Union.h:84
te::vp::Union::~Union
virtual ~Union()
Definition: Union.h:50
AlgorithmParams.h
Algorithm Parameters.
te::vp::Union
Definition: Union.h:45
te::vp::AlgorithmParams
Definition: AlgorithmParams.h:52
te::vp::Union::m_firstAttrNameMap
std::map< std::string, std::string > m_firstAttrNameMap
Definition: Union.h:82
te::vp::Algorithm
Define input/output parameters for an operation.
Definition: Algorithm.h:45
te::vp::Union::getOutputDataSetType
te::da::DataSetType * getOutputDataSetType(te::vp::AlgorithmParams *mainParams)
TEVPEXPORT
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61
te::vp::Union::getFirstSelectedProperties
std::vector< te::dt::Property * > getFirstSelectedProperties(const te::da::DataSetType *dataSetType, const std::map< std::string, te::dt::AbstractData * > &specificParams)
te::vp::Union::executeMemory
bool executeMemory(te::vp::AlgorithmParams *mainParams)
Algorithm.h
Abstract algorithm.
te::vp::Union::getProperties
std::vector< std::pair< std::string, std::string > > getProperties(const std::map< std::string, te::dt::AbstractData * > &specificParams)
Config.h
Proxy configuration file for TerraView (see terraview_config.h).
te::da::DataSetType
A class that models the description of a dataset.
Definition: DataSetType.h:73
te::vp::Union::Union
Union()
te::gm::Geometry
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Definition: Geometry.h:78
te::gm::GeomType
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
Definition: Enums.h:42
te::vp::Union::isCollection
bool isCollection(const std::map< std::string, te::dt::AbstractData * > &specificParams)