GEOS  3.8.0dev
SimpleGeometryPrecisionReducer.h
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 
20 // Forward declarations
21 namespace geos {
22 namespace geom {
23 class PrecisionModel;
24 class Geometry;
25 }
26 }
27 
28 namespace geos {
29 namespace precision { // geos.precision
30 
45 
46 private:
47 
48  const geom::PrecisionModel* newPrecisionModel;
49 
50  bool removeCollapsed;
51 
52  //bool changePrecisionModel;
53 
54 public:
55 
57 
66  void setRemoveCollapsedComponents(bool nRemoveCollapsed);
67 
68  /*
69  * Sets whether the {@link PrecisionModel} of the new reduced Geometry
70  * will be changed to be the {@link PrecisionModel} supplied to
71  * specify the reduction. The default is to not change the
72  * precision model
73  *
74  * @param changePrecisionModel if <code>true</code> the precision
75  * model of the created Geometry will be the
76  * the precisionModel supplied in the constructor.
77  */
78  //void setChangePrecisionModel(bool nChangePrecisionModel);
79 
80  const geom::PrecisionModel* getPrecisionModel();
81 
82  bool getRemoveCollapsed();
83  geom::Geometry* reduce(const geom::Geometry* geom);
84 };
85 
86 } // namespace geos.precision
87 } // namespace geos
88 
89 #endif // GEOS_PRECISION_SIMPLEGEOMETRYPRECISIONREDUCER_H
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:87
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:187
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
Reduces the precision of a Geometry according to the supplied PrecisionModel, without attempting to p...
Definition: SimpleGeometryPrecisionReducer.h:44