20 #ifndef GEOS_GEOM_PRECISIONMODEL_H
21 #define GEOS_GEOM_PRECISIONMODEL_H
23 #include <geos/export.h>
24 #include <geos/inline.h>
88 friend class io::Unload;
272 std::string toString()
const;
304 void setScale(
double newScale);
320 # include "geos/geom/PrecisionModel.inl"
323 #endif // ndef GEOS_GEOM_PRECISIONMODEL_H
PrecisionModel(Type nModelType)
double makePrecise(double val) const
Rounds a numeric value to the PrecisionModel grid.
int compareTo(const PrecisionModel *other) const
Compares this PrecisionModel object with the specified object for order.
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:87
@ FLOATING
Definition: PrecisionModel.h:108
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26
void makePrecise(Coordinate &coord) const
Rounds the given Coordinate to the PrecisionModel grid.
double getOffsetX() const
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
@ FIXED
Definition: PrecisionModel.h:101
PrecisionModel(void)
Creates a PrecisionModel with a default precision of FLOATING.
double getOffsetY() const
double getScale() const
Returns the multiplying factor used to obtain a precise coordinate.
Type
The types of Precision Model which GEOS supports.
Definition: PrecisionModel.h:93
PrecisionModel(double newScale)
Creates a PrecisionModel with Fixed precision.
int getMaximumSignificantDigits() const
Returns the maximum number of significant digits provided by this precision model.
static const double maximumPreciseValue
Definition: PrecisionModel.h:166
PrecisionModel(double newScale, double newOffsetX, double newOffsetY)
Creates a PrecisionModel with Fixed precision.