BufferQuery.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 BufferQuery.h
22 
23  \brief
24 
25  \ingroup vp
26 */
27 
28 #ifndef __TERRALIB_VP_INTERNAL_BUFFER_QUERY_H
29 #define __TERRALIB_VP_INTERNAL_BUFFER_QUERY_H
30 
31 //Terralib
32 #include "../common/Exception.h"
33 #include "../datatype/Property.h"
34 #include "../geometry/Geometry.h"
35 #include "../memory/DataSet.h"
36 #include "../statistics/core/Enums.h"
37 
38 #include "BufferOp.h"
39 #include "Config.h"
40 #include "Enums.h"
41 #include "Exception.h"
42 
43 
44 // STL
45 #include <map>
46 #include <memory>
47 #include <string>
48 #include <vector>
49 
50 namespace te
51 {
52  namespace vp
53  {
55  {
56 
57  public:
58 
59  BufferQuery();
60 
61  ~BufferQuery();
62 
63  bool run() throw(te::common::Exception);
64 
65  protected:
66 
67  std::vector<std::vector<te::gm::Geometry*> > dissolveQuery( te::da::DataSet* dsQuery,
68  const int& levels);
69 
70  void prepareDataSet(te::da::DataSetType* dataSetType,
71  te::da::DataSet* dataSetQuery,
72  te::mem::DataSet* outputDataSet,
73  const double& distance);
74 
75  void prepareDataSet(te::da::DataSetType* dataSetType,
76  std::vector<std::vector<te::gm::Geometry*> > vecDissolvedGeom,
77  te::mem::DataSet* outputDataSet,
78  const double& distance);
79 
80  }; // end class
81  } // end namespace vp
82 } // end namespace te
83 
84 #endif // __TERRALIB_VP_INTERNAL_AGGREGATION_QUERY_H
85 
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61
Buffer operation.
A class that models the description of a dataset.
Definition: DataSetType.h:72
Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver...
Definition: DataSet.h:65
URI C++ Library.
Enumerations related to Vector Processing module.
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
Definition: Exception.h:58
A dataset is the unit of information manipulated by the data access module of TerraLib.
Definition: DataSet.h:112
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
Configuration flags for the Terrralib Vector Processing module.