Skip to content

Commit a3159a3

Browse files
committedOct 8, 2015
Use floating as default precision
1 parent 6a6fe45 commit a3159a3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎src/core/geometry/qgsgeometry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class CORE_EXPORT QgsGeometry
161161
@note this method was added in version 1.1
162162
@note not available in python bindings
163163
*/
164-
const GEOSGeometry* asGeos( double precision = 1E-8 ) const;
164+
const GEOSGeometry* asGeos( double precision = 0 ) const;
165165

166166
/** Returns type of the geometry as a WKB type (point / linestring / polygon etc.)
167167
* @see type

‎src/core/geometry/qgsgeos.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class QgsPolygonV2;
2929
class CORE_EXPORT QgsGeos: public QgsGeometryEngine
3030
{
3131
public:
32-
QgsGeos( const QgsAbstractGeometryV2* geometry, double precision = 1E-8 );
32+
QgsGeos( const QgsAbstractGeometryV2* geometry, double precision = 0 );
3333
~QgsGeos();
3434

3535
/** Removes caches*/
@@ -81,7 +81,7 @@ class CORE_EXPORT QgsGeos: public QgsGeometryEngine
8181

8282
static QgsAbstractGeometryV2* fromGeos( const GEOSGeometry* geos );
8383
static QgsPolygonV2* fromGeosPolygon( const GEOSGeometry* geos );
84-
static GEOSGeometry* asGeos( const QgsAbstractGeometryV2* geom , double precision = 1E-8 );
84+
static GEOSGeometry* asGeos( const QgsAbstractGeometryV2* geom , double precision = 0 );
8585
static QgsPointV2 coordSeqPoint( const GEOSCoordSequence* cs, int i, bool hasZ, bool hasM );
8686

8787
static GEOSContextHandle_t getGEOSHandler();

0 commit comments

Comments
 (0)
Please sign in to comment.