GEOS 3.9.1
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#include <memory>
20
21// Forward declarations
22namespace geos {
23namespace geom {
24class PrecisionModel;
25class Geometry;
26}
27}
28
29namespace geos {
30namespace precision { // geos.precision
31
46
47private:
48
49 const geom::PrecisionModel* newPrecisionModel;
50
51 bool removeCollapsed;
52
53 //bool changePrecisionModel;
54
55public:
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
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:188
Specifies the precision model of the Coordinate in a Geometry.
Definition PrecisionModel.h:87
Reduces the precision of a geom::Geometry according to the supplied geom::PrecisionModel,...
Definition SimpleGeometryPrecisionReducer.h:45
void setRemoveCollapsedComponents(bool nRemoveCollapsed)
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:26