Dissolve.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 Dissolve.h
22 
23  \brief Dissolve operation.
24 
25  \ingroup vp
26  */
27 
28 #ifndef __TERRALIB_VP_INTERNAL_DISSOLVE_H
29 #define __TERRALIB_VP_INTERNAL_DISSOLVE_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 #include "../statistics/core/SummaryFunctions.h"
43 
44 #include "Algorithm.h"
45 #include "AlgorithmParams.h"
46 #include "Config.h"
47 
48 // STL
49 #include <map>
50 #include <memory>
51 #include <string>
52 #include <vector>
53 
54 namespace te
55 {
56  namespace vp
57  {
58  std::vector<std::string> GetDissolveProps(
59  const std::map<std::string, te::dt::AbstractData*>& specificParams);
60 
61  std::map<te::dt::Property*, std::vector<te::stat::StatisticalSummary> >
63  const std::map<std::string, te::dt::AbstractData*>& specificParams);
64 
65  bool IsCollection(
66  const std::map<std::string, te::dt::AbstractData*>& specificParams);
67 
69  te::vp::AlgorithmParams* mainParams);
70 
72  const bool& isCollection);
73 
74  std::vector<te::gm::Geometry*> ExtractGeometry(
75  te::gm::Geometry* inputGeometry, te::gm::GeomType outputGeomType);
76 
77  void PopulateItens(
78  te::da::DataSetType* inputDataSetType,
79  std::vector<te::mem::DataSetItem*> inputItens,
80  std::map<std::string, te::dt::AbstractData*> specificParams,
81  std::vector<te::mem::DataSetItem*> outputItemVec);
82 
84  std::vector<std::string>& error);
85 
86  class GroupThreadManager;
87 
88  class TEVPEXPORT Dissolve : public Algorithm
89  {
90  public:
91 
92  Dissolve();
93 
94  virtual ~Dissolve() {}
95 
96  bool executeMemory(te::vp::AlgorithmParams* mainParams);
97 
98  bool executeQuery(te::vp::AlgorithmParams* mainParams);
99 
100  static void threadUnion(GroupThreadManager* manager);
101 
102  static void threadSave(GroupThreadManager* manager);
103 
104  private:
105 
107 
108  };
109  }
110 }
111 #endif // __TERRALIB_VP_INTERNAL_DISSOLVE_H
te::sam::rtree::Index< size_t, 8 > * DataSetRTree
Definition: Dissolve.h:106
#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
std::map< te::dt::Property *, std::vector< te::stat::StatisticalSummary > > GetSummaryProps(const std::map< std::string, te::dt::AbstractData * > &specificParams)
A class that represents an R-tree.
Definition: Index.h:56
A class that models the description of a dataset.
Definition: DataSetType.h:72
std::vector< std::string > GetDissolveProps(const std::map< std::string, te::dt::AbstractData * > &specificParams)
void PopulateItens(te::da::DataSetType *inputDataSetType, std::vector< te::mem::DataSetItem * > inputItens, std::map< std::string, te::dt::AbstractData * > specificParams, std::vector< te::mem::DataSetItem * > outputItemVec)
Algorithm Parameters.
te::gm::GeomType SetGeomResultType(const te::gm::GeomType &geomType, const bool &isCollection)
te::gm::Geometry * ValidateGeometry(te::gm::Geometry *input, std::vector< std::string > &error)
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
std::vector< te::gm::Geometry * > ExtractGeometry(te::gm::Geometry *inputGeometry, te::gm::GeomType outputGeomType)
virtual ~Dissolve()
Definition: Dissolve.h:94
Configuration flags for the Terrralib Vector Processing module.
te::da::DataSetType * GetOutputDataSetType(te::vp::AlgorithmParams *mainParams)
bool IsCollection(const std::map< std::string, te::dt::AbstractData * > &specificParams)