ST_Buffer.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 terralib/dataaccess/query/ST_Buffer.h
22 
23  \brief Spatial buffer operator.
24 */
25 
26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_ST_BUFFER_H
27 #define __TERRALIB_DATAACCESS_INTERNAL_ST_BUFFER_H
28 
29 // TerraLib
30 #include "Function.h"
31 
32 // STL
33 #include <memory>
34 
35 namespace te
36 {
37  // Forward declarations
38  namespace gm { class Geometry; }
39 
40  namespace da
41  {
42  /*!
43  \class ST_Buffer
44 
45  \brief Spatial Buffer operator.
46 
47  This function is just a syntatic-suggar.
48 
49  \sa Function
50  */
52  {
53  public:
54 
56 
57  /*!
58  \brief Constructor.
59 
60  \param g The geometry literal.
61  \param d Distance.
62  */
63  ST_Buffer(const te::gm::Geometry& g, const double& d);
64 
65  /*!
66  \brief Constructor.
67 
68  \param prop The geometry property name.
69  \param d Distance.
70  */
71  ST_Buffer(const te::da::PropertyName& prop, const double& d);
72  /*!
73  \brief Constructor.
74 
75  \param g The geometry literal.
76  \param attName The property name that will be used to calculate buffer.
77  */
78  ST_Buffer(const te::gm::Geometry& g, const PropertyName& propDist);
79 
80  /*!
81  \brief Constructor.
82 
83  \param prop The geometry property name.
84  \param attName The property name that will be used to calculate buffer.
85  */
86  ST_Buffer(const te::da::PropertyName& propGeom, const PropertyName& propDist);
87 
88  /*!
89  \brief Constructor.
90 
91  \param e The expression.
92  */
93  ST_Buffer(const Expression& e);
94 
95  /*! \brief Destructor. */
96  ~ST_Buffer();
97 
98  /*! Assignment operator. */
99  ST_Buffer& operator=(const ST_Buffer& rhs);
100 
101  /*! \brief It creates a new copy of this expression. */
102  Expression* clone() const;
103  };
104 
105  } // end namespace da
106 } // end namespace te
107 
108 #endif // __TERRALIB_DATAACCESS_INTERNAL_ST_BUFFER_H
109 
A class that models a Function expression.
A class that models the name of any property of an object.
Definition: PropertyName.h:50
This is an abstract class that models a query expression.
Definition: Expression.h:47
Spatial Buffer operator.
Definition: ST_Buffer.h:51
URI C++ Library.
A class that models a Function expression.
Definition: Function.h:47
#define TE_DEFINE_VISITABLE
Definition: BaseVisitable.h:75
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Definition: Geometry.h:74
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:97