Difference.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 Difference.h
22 
23  \brief Difference operation.
24 
25  \ingroup vp
26  */
27 
28 #ifndef __TERRALIB_VP_INTERNAL_DIFFERENCE_H
29 #define __TERRALIB_VP_INTERNAL_DIFFERENCE_H
30 
31 //Terralib
32 
33 #include "../dataaccess/dataset/DataSet.h"
34 #include "../dataaccess/dataset/DataSetType.h"
35 #include "../dataaccess/datasource/DataSource.h"
36 
37 #include "../datatype/Property.h"
38 
39 #include "../geometry/Enums.h"
40 #include "../memory/DataSet.h"
41 #include "../sam.h"
42 
43 #include "Algorithm.h"
44 #include "AlgorithmParams.h"
45 #include "Config.h"
46 
47 // STL
48 #include <map>
49 #include <memory>
50 #include <string>
51 #include <vector>
52 
53 namespace te
54 {
55  namespace vp
56  {
58  {
59  public:
60 
61  Difference();
62 
63  virtual ~Difference() {}
64 
65  bool executeMemory(te::vp::AlgorithmParams* mainParams);
66 
67  bool executeQuery(te::vp::AlgorithmParams* mainParams);
68 
69  protected:
70 
71  std::vector<std::string> getPropNames(const std::map<std::string, te::dt::AbstractData*>& specificParams);
72 
73  bool isCollection(const std::map<std::string, te::dt::AbstractData*>& specificParams);
74 
75  te::da::DataSetType* getOutputDataSetType(te::vp::AlgorithmParams* mainParams);
76 
77  te::gm::GeomType setGeomResultType(const te::gm::GeomType& geomType, const bool& isCollection);
78 
79  te::gm::Geometry* setGeomAsMulti(te::gm::Geometry* geom);
80 
81  private:
82 
84 
85  };
86  }
87 }
88 #endif // __TERRALIB_VP_INTERNAL_DIFFERENCE_H
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
Definition: Enums.h:41
A class that represents an R-tree.
Definition: Index.h:56
A class that models the description of a dataset.
Definition: DataSetType.h:72
Algorithm Parameters.
Define input/output parameters for an operation.
Definition: Algorithm.h:44
URI C++ Library.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Definition: Geometry.h:74
te::sam::rtree::Index< size_t, 8 > * DataSetRTree
Definition: Difference.h:83
virtual ~Difference()
Definition: Difference.h:63
Configuration flags for the Terrralib Vector Processing module.