FixGeometry.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 FixGeometry.h
22 
23  \brief Functrions to fix geometry.
24 
25  \ingroup vp
26  */
27 
28 #ifndef __TERRALIB_VP_INTERNAL_FIXGEOMETRY_H
29 #define __TERRALIB_VP_INTERNAL_FIXGEOMETRY_H
30 
31 //Terralib
32 
33 #include "../dataaccess/dataset/DataSet.h"
34 #include "../dataaccess/dataset/DataSetType.h"
35 #include "../dataaccess/datasource/DataSource.h"
36 #include "../dataaccess/dataset/ObjectIdSet.h"
37 
38 #include "../datatype/Property.h"
39 
40 #include "../geometry/Enums.h"
41 #include "../memory/DataSet.h"
42 
43 #include "Algorithm.h"
44 #include "AlgorithmParams.h"
45 #include "Config.h"
46 
47 namespace te
48 {
49  namespace vp
50  {
51 
52  /*!
53  \brief It tries to fix invalid geometry by SQL clause ST_MakeValid and updates the source data.
54 
55  \param dataSource The data source information.
56  \param dataSetName The input data name.
57  \param errorMessage Variable to catch any error occurred during execution.
58 
59  \return True, if the query was executed successfully and the geometries fixed was updated.
60 
61  \note The layer must be inserted in a database with spatial extent.
62  */
64  const std::string dataSetName,
65  std::string errorMessage);
66  }
67 }
68 #endif // __TERRALIB_VP_INTERNAL_DISSOLVE_H
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61
boost::shared_ptr< DataSource > DataSourcePtr
Definition: DataSource.h:1438
Algorithm Parameters.
URI C++ Library.
Configuration flags for the Terrralib Vector Processing module.
TEVPEXPORT bool MakeValidGeometry(const te::da::DataSourcePtr dataSource, const std::string dataSetName, std::string errorMessage)
It tries to fix invalid geometry by SQL clause ST_MakeValid and updates the source data...