Loading...
Searching...
No Matches
Union.h
Go to the documentation of this file.
1/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5TerraLib is free software: you can redistribute it and/or modify
6it under the terms of the GNU Lesser General Public License as published by
7the Free Software Foundation, either version 3 of the License,
8or (at your option) any later version.
9
10TerraLib is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU Lesser General Public License for more details.
14
15You should have received a copy of the GNU Lesser General Public License
16along with TerraLib. See COPYING. If not, write to
17TerraLib 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
40namespace te
41{
42 namespace vp
43 {
44 class TEVPEXPORT Union : public Algorithm
45 {
46 public:
47
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
Algorithm Parameters.
A class that models the description of a dataset.
Definition: DataSetType.h:73
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Definition: Geometry.h:78
Define input/output parameters for an operation.
Definition: Algorithm.h:45
bool executeQuery(te::vp::AlgorithmParams *mainParams)
std::vector< std::pair< std::string, std::string > > getProperties(const std::map< std::string, te::dt::AbstractData * > &specificParams)
bool executeMemory(te::vp::AlgorithmParams *mainParams)
virtual ~Union()
Definition: Union.h:50
te::gm::Geometry * setGeomAsMulti(te::gm::Geometry *geom)
te::gm::GeomType getGeomResultType(const te::gm::GeomType &firstGeom, const te::gm::GeomType &secondGeom, const bool &isCollection)
std::map< std::string, std::string > m_secondAttrNameMap
Definition: Union.h:84
std::vector< te::dt::Property * > getSecondSelectedProperties(const te::da::DataSetType *dataSetType, const std::map< std::string, te::dt::AbstractData * > &specificParams)
te::da::DataSetType * getOutputDataSetType(te::vp::AlgorithmParams *mainParams)
bool isCollection(const std::map< std::string, te::dt::AbstractData * > &specificParams)
std::vector< te::dt::Property * > getFirstSelectedProperties(const te::da::DataSetType *dataSetType, const std::map< std::string, te::dt::AbstractData * > &specificParams)
std::map< std::string, std::string > m_firstAttrNameMap
Definition: Union.h:82
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
Definition: Enums.h:42
TerraLib.
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61
Proxy configuration file for TerraView (see terraview_config.h).
Abstract algorithm.