Intersection.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 IntersectionOp.h
22 
23  \brief Intersection operation.
24 
25  \ingroup vp
26  */
27 
28 #ifndef __TERRALIB_VP_INTERNAL_INTERSECTION_H
29 #define __TERRALIB_VP_INTERNAL_INTERSECTION_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 
42 #include "Algorithm.h"
43 #include "AlgorithmParams.h"
44 #include "Config.h"
45 
46 // STL
47 #include <map>
48 #include <memory>
49 #include <string>
50 #include <vector>
51 
52 namespace te
53 {
54  namespace vp
55  {
57  {
58  public:
59 
61 
62  virtual ~Intersection() {}
63 
64  //bool executeMemory(te::vp::AlgorithmParams* mainParams);
66 
68 
69  protected:
70 
72 
74 
75  te::gm::GeomType getGeomResultType(const te::gm::GeomType& firstGeom, const te::gm::GeomType& secondGeom, const bool& isCollection);
76 
77  std::vector<te::dt::Property*> getFirstSelectedProperties(const te::da::DataSetType* dataSetType, const std::map<std::string, te::dt::AbstractData*>& specificParams);
78 
79  std::vector<te::dt::Property*> getSecondSelectedProperties(const te::da::DataSetType* dataSetType, const std::map<std::string, te::dt::AbstractData*>& specificParams);
80 
81  std::vector<std::pair<std::string, std::string> > getSelectedProperties(const std::map<std::string, te::dt::AbstractData*>& specificParams);
82 
83  bool isCollection(const std::map<std::string, te::dt::AbstractData*>& specificParams);
84 
85  private:
86 
87  std::map<std::string, std::string> m_firstAttrNameMap;
88 
89  std::map<std::string, std::string> m_secondAttrNameMap;
90 
91  };
92  }
93 }
94 #endif // __TERRALIB_VP_INTERNAL_INTERSECTION_H
te
TerraLib.
Definition: AddressGeocodingOp.h:52
te::vp::Intersection::getOutputDataSetType
te::da::DataSetType * getOutputDataSetType(te::vp::AlgorithmParams *mainParams)
AlgorithmParams.h
Algorithm Parameters.
te::vp::AlgorithmParams
Definition: AlgorithmParams.h:52
te::vp::Intersection::~Intersection
virtual ~Intersection()
Definition: Intersection.h:62
te::vp::Intersection::m_secondAttrNameMap
std::map< std::string, std::string > m_secondAttrNameMap
Definition: Intersection.h:89
te::vp::Intersection::executeQuery
bool executeQuery(te::vp::AlgorithmParams *mainParams)
te::vp::Intersection::m_firstAttrNameMap
std::map< std::string, std::string > m_firstAttrNameMap
Definition: Intersection.h:87
te::vp::Algorithm
Define input/output parameters for an operation.
Definition: Algorithm.h:45
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::Intersection::getSelectedProperties
std::vector< std::pair< std::string, std::string > > getSelectedProperties(const std::map< std::string, te::dt::AbstractData * > &specificParams)
te::vp::Intersection::executeMemory
bool executeMemory(te::vp::AlgorithmParams *mainParams)
te::vp::Intersection::getGeomResultType
te::gm::GeomType getGeomResultType(const te::gm::GeomType &firstGeom, const te::gm::GeomType &secondGeom, const bool &isCollection)
Algorithm.h
Abstract algorithm.
te::vp::Intersection::updateGeomType
te::da::DataSet * updateGeomType(te::da::DataSetType *dsType, te::da::DataSet *ds)
te::da::DataSet
A dataset is the unit of information manipulated by the data access module of TerraLib.
Definition: DataSet.h:114
te::vp::Intersection::isCollection
bool isCollection(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::Intersection
Definition: Intersection.h:57
te::vp::Intersection::Intersection
Intersection()
te::gm::GeomType
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
Definition: Enums.h:42
te::vp::Intersection::getSecondSelectedProperties
std::vector< te::dt::Property * > getSecondSelectedProperties(const te::da::DataSetType *dataSetType, const std::map< std::string, te::dt::AbstractData * > &specificParams)
te::vp::Intersection::getFirstSelectedProperties
std::vector< te::dt::Property * > getFirstSelectedProperties(const te::da::DataSetType *dataSetType, const std::map< std::string, te::dt::AbstractData * > &specificParams)