19#ifndef GEOS_PRECISION_GEOMETRYPRECISIONREDUCER_H
20#define GEOS_PRECISION_GEOMETRYPRECISIONREDUCER_H
22#include <geos/export.h>
23#include <geos/geom/GeometryFactory.h>
43class GEOS_DLL GeometryPrecisionReducer {
58 std::auto_ptr<geom::Geometry> fixPolygonalTopology(
61 geom::GeometryFactory::unique_ptr createFactory(
65 GeometryPrecisionReducer(GeometryPrecisionReducer
const&);
66 GeometryPrecisionReducer& operator=(GeometryPrecisionReducer
const&);
81 static std::auto_ptr<geom::Geometry>
reduce(
85 GeometryPrecisionReducer reducer(precModel);
104 GeometryPrecisionReducer reducer(precModel);
113 removeCollapsed(true),
137 removeCollapsed = remove;
153 isPointwise = pointwise;
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition GeometryFactory.h:67
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:167
Specifies the precision model of the Coordinate in a Geometry.
Definition PrecisionModel.h:87
Reduces the precision of a Geometry according to the supplied PrecisionModel, ensuring that the resul...
Definition GeometryPrecisionReducer.h:43
static std::auto_ptr< geom::Geometry > reduce(const geom::Geometry &g, const geom::PrecisionModel &precModel)
Definition GeometryPrecisionReducer.h:81
void setPointwise(bool pointwise)
Sets whether the precision reduction will be done in pointwise fashion only.
Definition GeometryPrecisionReducer.h:151
static std::auto_ptr< geom::Geometry > reducePointwise(const geom::Geometry &g, const geom::PrecisionModel &precModel)
Definition GeometryPrecisionReducer.h:100
void setRemoveCollapsedComponents(bool remove)
Definition GeometryPrecisionReducer.h:136
GeometryPrecisionReducer(const geom::GeometryFactory &gf)
Create a reducer that will change the precision model of the new reduced Geometry.
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Provides classes for manipulating the precision model of Geometries.
Definition precision.h:22
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25