GEOS  3.9.1dev
SimpleGeometryPrecisionReducer.h
Go to the documentation of this file.
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2005-2006 Refractions Research Inc.
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU Lesser General Public Licence as published
10  * by the Free Software Foundation.
11  * See the COPYING file for more information.
12  *
13  **********************************************************************/
14 
15 #ifndef GEOS_PRECISION_SIMPLEGEOMETRYPRECISIONREDUCER_H
16 #define GEOS_PRECISION_SIMPLEGEOMETRYPRECISIONREDUCER_H
17 
18 #include <geos/export.h>
19 #include <memory>
20 
21 // Forward declarations
22 namespace geos {
23 namespace geom {
24 class PrecisionModel;
25 class Geometry;
26 }
27 }
28 
29 namespace geos {
30 namespace precision { // geos.precision
31 
46 
47 private:
48 
50 
52 
53  //bool changePrecisionModel;
54 
55 public:
56 
58 
67  void setRemoveCollapsedComponents(bool nRemoveCollapsed);
68 
69  /*
70  * Sets whether the {@link PrecisionModel} of the new reduced Geometry
71  * will be changed to be the {@link PrecisionModel} supplied to
72  * specify the reduction. The default is to not change the
73  * precision model
74  *
75  * @param changePrecisionModel if <code>true</code> the precision
76  * model of the created Geometry will be the
77  * the precisionModel supplied in the constructor.
78  */
79  //void setChangePrecisionModel(bool nChangePrecisionModel);
80 
81  const geom::PrecisionModel* getPrecisionModel();
82 
83  bool getRemoveCollapsed();
84  std::unique_ptr<geom::Geometry> reduce(const geom::Geometry* geom);
85 };
86 
87 } // namespace geos.precision
88 } // namespace geos
89 
90 #endif // GEOS_PRECISION_SIMPLEGEOMETRYPRECISIONREDUCER_H
#define GEOS_DLL
Definition: export.h:28
Specifies the precision model of the Coordinate in a Geometry.
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Basic namespace for all GEOS functionalities.
Reduces the precision of a geom::Geometry according to the supplied geom::PrecisionModel, without attempting to preserve valid topology.