Skip to content

Commit

Permalink
Use floating as default precision
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Oct 8, 2015
1 parent 6a6fe45 commit a3159a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometry.h
Expand Up @@ -161,7 +161,7 @@ class CORE_EXPORT QgsGeometry
@note this method was added in version 1.1
@note not available in python bindings
*/
const GEOSGeometry* asGeos( double precision = 1E-8 ) const;
const GEOSGeometry* asGeos( double precision = 0 ) const;

/** Returns type of the geometry as a WKB type (point / linestring / polygon etc.)
* @see type
Expand Down
4 changes: 2 additions & 2 deletions src/core/geometry/qgsgeos.h
Expand Up @@ -29,7 +29,7 @@ class QgsPolygonV2;
class CORE_EXPORT QgsGeos: public QgsGeometryEngine
{
public:
QgsGeos( const QgsAbstractGeometryV2* geometry, double precision = 1E-8 );
QgsGeos( const QgsAbstractGeometryV2* geometry, double precision = 0 );
~QgsGeos();

/** Removes caches*/
Expand Down Expand Up @@ -81,7 +81,7 @@ class CORE_EXPORT QgsGeos: public QgsGeometryEngine

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

static GEOSContextHandle_t getGEOSHandler();
Expand Down

0 comments on commit a3159a3

Please sign in to comment.