Skip to content

Commit 52d6edc

Browse files
committed
fix build on precise
1 parent 738107a commit 52d6edc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/core/qgsgeometry.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5594,6 +5594,8 @@ QgsGeometry* QgsGeometry::buffer( double distance, int segments )
55945594
CATCH_GEOS( 0 )
55955595
}
55965596

5597+
#if defined(GEOS_VERSION_MAJOR) && defined(GEOS_VERSION_MINOR) && \
5598+
((GEOS_VERSION_MAJOR>3) || ((GEOS_VERSION_MAJOR==3) && (GEOS_VERSION_MINOR>=3)))
55975599
QgsGeometry* QgsGeometry::offsetCurve( double distance, int segments, int joinStyle, double mitreLimit )
55985600
{
55995601
if ( mDirtyGeos )
@@ -5608,6 +5610,7 @@ QgsGeometry* QgsGeometry::offsetCurve( double distance, int segments, int joinSt
56085610
}
56095611
CATCH_GEOS( 0 )
56105612
}
5613+
#endif
56115614

56125615
QgsGeometry* QgsGeometry::simplify( double tolerance )
56135616
{

src/core/qgsgeometry.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,11 @@ class CORE_EXPORT QgsGeometry
355355
of segments used to approximate curves */
356356
QgsGeometry* buffer( double distance, int segments );
357357

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

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

0 commit comments

Comments
 (0)