22 #include <geos/geom/Coordinate.h> 23 #include <geos/export.h> 91 friend class io::Unload;
148 PrecisionModel(
double newScale,
double newOffsetX,
double newOffsetY);
183 double makePrecise(
double val)
const;
189 if(modelType == FLOATING) {
193 coord.x = makePrecise(coord.x);
194 coord.y = makePrecise(coord.y);
197 void makePrecise(CoordinateXY* coord)
const 200 return makePrecise(*coord);
208 bool isFloating()
const;
220 int getMaximumSignificantDigits()
const;
234 assert(!(scale < 0));
249 return DoubleNotANumber;
263 double getOffsetX()
const;
271 double getOffsetY()
const;
316 std::string toString()
const;
348 void setScale(
double newScale);
363 double gridSize = 0.0;
void makePrecise(CoordinateXY &coord) const
Rounds the given Coordinate to the PrecisionModel grid.
Definition: PrecisionModel.h:186
static const double maximumPreciseValue
Definition: PrecisionModel.h:171
Definition: PrecisionModel.h:104
Specifies the precision model of the Coordinate in a Geometry.
Definition: PrecisionModel.h:90
double getScale() const
Returns the multiplying factor used to obtain a precise coordinate.
Definition: PrecisionModel.h:232
Type
The types of Precision Model which GEOS supports.
Definition: PrecisionModel.h:96
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25
Type getType() const
Definition: PrecisionModel.h:226
Definition: PrecisionModel.h:111
double getGridSize() const
Definition: PrecisionModel.h:246