Skip to content

Commit

Permalink
fix build on precise
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 16, 2014
1 parent 738107a commit 52d6edc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsgeometry.cpp
Expand Up @@ -5594,6 +5594,8 @@ QgsGeometry* QgsGeometry::buffer( double distance, int segments )
CATCH_GEOS( 0 )
}

#if defined(GEOS_VERSION_MAJOR) && defined(GEOS_VERSION_MINOR) && \
((GEOS_VERSION_MAJOR>3) || ((GEOS_VERSION_MAJOR==3) && (GEOS_VERSION_MINOR>=3)))
QgsGeometry* QgsGeometry::offsetCurve( double distance, int segments, int joinStyle, double mitreLimit )
{
if ( mDirtyGeos )
Expand All @@ -5608,6 +5610,7 @@ QgsGeometry* QgsGeometry::offsetCurve( double distance, int segments, int joinSt
}
CATCH_GEOS( 0 )
}
#endif

QgsGeometry* QgsGeometry::simplify( double tolerance )
{
Expand Down
3 changes: 3 additions & 0 deletions src/core/qgsgeometry.h
Expand Up @@ -355,8 +355,11 @@ class CORE_EXPORT QgsGeometry
of segments used to approximate curves */
QgsGeometry* buffer( double distance, int segments );

#if defined(GEOS_VERSION_MAJOR) && defined(GEOS_VERSION_MINOR) && \
((GEOS_VERSION_MAJOR>3) || ((GEOS_VERSION_MAJOR==3) && (GEOS_VERSION_MINOR>=3)))
/** Returns an offset line at a given distance and side from an input line. */
QgsGeometry* offsetCurve( double distance, int segments, int joinStyle, double mitreLimit );
#endif

/** Returns a simplified version of this geometry using a specified tolerance value */
QgsGeometry* simplify( double tolerance );
Expand Down

0 comments on commit 52d6edc

Please sign in to comment.