Skip to content
Permalink
Browse files
Use floating as default precision
  • Loading branch information
manisandro committed Oct 8, 2015
1 parent 6a6fe45 commit a3159a3ce8d03bae74d0be5ec733a57a9d5edc6a
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/core/geometry/qgsgeometry.h
  2. +2 −2 src/core/geometry/qgsgeos.h
@@ -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
@@ -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*/
@@ -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();

0 comments on commit a3159a3

Please sign in to comment.