21 #include <geos/export.h>
22 #include <geos/geom/GeometryFactory.h>
29 class GeometryFactory;
67 bool changePrecisionModel;
71 std::unique_ptr<geom::Geometry> fixPolygonalTopology(
const geom::Geometry& geom);
73 geom::GeometryFactory::Ptr createFactory(
85 std::unique_ptr<geom::Geometry> changePM(
105 static std::unique_ptr<geom::Geometry>
108 static std::unique_ptr<geom::Geometry>
111 static std::unique_ptr<geom::Geometry>
115 : newFactory(nullptr)
117 , removeCollapsed(true)
118 , changePrecisionModel(false)
119 , useAreaReducer(false)
134 : newFactory(&changeFactory)
135 , targetPM(*(changeFactory.getPrecisionModel()))
136 , removeCollapsed(true)
137 , changePrecisionModel(false)
138 , useAreaReducer(false)
152 removeCollapsed = remove;
168 changePrecisionModel = change;
172 setUseAreaReducer(
bool useAR)
174 useAreaReducer = useAR;
191 isPointwise = pointwise;
194 std::unique_ptr<geom::Geometry> reduce(
const geom::Geometry& geom);
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:70
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:197
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:88
Reduces the precision of a geom::Geometry according to the supplied geom::PrecisionModel,...
Definition: GeometryPrecisionReducer.h:57
GeometryPrecisionReducer(const geom::GeometryFactory &changeFactory)
Create a reducer that will change the precision model of the new reduced Geometry.
Definition: GeometryPrecisionReducer.h:133
void setPointwise(bool pointwise)
Sets whether the precision reduction will be done in pointwise fashion only.
Definition: GeometryPrecisionReducer.h:189
void setChangePrecisionModel(bool change)
Sets whether the geom::PrecisionModel of the new reduced Geometry will be changed to be the geom::Pre...
Definition: GeometryPrecisionReducer.h:166
static std::unique_ptr< geom::Geometry > reduce(const geom::Geometry &g, const geom::PrecisionModel &precModel)
void setRemoveCollapsedComponents(bool remove)
Definition: GeometryPrecisionReducer.h:150
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25