Loading...
Searching...
No Matches
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
35namespace 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 \param d Distance.
93 */
94 ST_Buffer(const Expression& e, const double& d);
95
96 /*!
97 \brief Constructor.
98
99 \param e The expression.
100 \param attName The property name that will be used to calculate buffer.
101 */
102 ST_Buffer(const Expression& e, const PropertyName& propDist);
103
104 /*! \brief Destructor. */
106
107 /*! Assignment operator. */
109
110 /*! \brief It creates a new copy of this expression. */
112 };
113
114 } // end namespace da
115} // end namespace te
116
117#endif // __TERRALIB_DATAACCESS_INTERNAL_ST_BUFFER_H
118
#define TE_DEFINE_VISITABLE
Definition: BaseVisitable.h:75
This is an abstract class that models a query expression.
Definition: Expression.h:48
A class that models a Function expression.
Definition: Function.h:48
A class that models the name of any property of an object.
Definition: PropertyName.h:51
Spatial Buffer operator.
Definition: ST_Buffer.h:52
ST_Buffer(const te::da::PropertyName &propGeom, const PropertyName &propDist)
Constructor.
ST_Buffer & operator=(const ST_Buffer &rhs)
ST_Buffer(const te::da::PropertyName &prop, const double &d)
Constructor.
ST_Buffer(const Expression &e, const double &d)
Constructor.
TE_DEFINE_VISITABLE ST_Buffer(const te::gm::Geometry &g, const double &d)
Constructor.
~ST_Buffer()
Destructor.
ST_Buffer(const te::gm::Geometry &g, const PropertyName &propDist)
Constructor.
ST_Buffer(const Expression &e, const PropertyName &propDist)
Constructor.
Expression * clone() const
It creates a new copy of this expression.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Definition: Geometry.h:78
TerraLib.
Symbology Encoding functions.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:97