Skip to content

Commit

Permalink
Fix version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 4, 2021
1 parent 79f0db1 commit 208c51b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/geometry/qgsgeos.cpp
Expand Up @@ -514,10 +514,10 @@ double QgsGeos::hausdorffDistanceDensify( const QgsAbstractGeometry *geom, doubl

double QgsGeos::frechetDistance( const QgsAbstractGeometry *geom, QString *errorMsg ) const
{
#if GEOS_VERSION_MAJOR==3 && GEOS_VERSION_MINOR<9
#if GEOS_VERSION_MAJOR==3 && GEOS_VERSION_MINOR<7
( void )geom;
( void )errorMsg;
throw QgsNotSupportedException( QStringLiteral( "Calculating frechetDistance requires a QGIS build based on GEOS 3.9 or later" ) );
throw QgsNotSupportedException( QStringLiteral( "Calculating frechetDistance requires a QGIS build based on GEOS 3.7 or later" ) );
#else
double distance = -1.0;
if ( !mGeos )
Expand All @@ -543,11 +543,11 @@ double QgsGeos::frechetDistance( const QgsAbstractGeometry *geom, QString *error

double QgsGeos::frechetDistanceDensify( const QgsAbstractGeometry *geom, double densifyFraction, QString *errorMsg ) const
{
#if GEOS_VERSION_MAJOR==3 && GEOS_VERSION_MINOR<9
#if GEOS_VERSION_MAJOR==3 && GEOS_VERSION_MINOR<7
( void )geom;
( void )densifyFraction;
( void )errorMsg;
throw QgsNotSupportedException( QStringLiteral( "Calculating frechetDistanceDensify requires a QGIS build based on GEOS 3.9 or later" ) );
throw QgsNotSupportedException( QStringLiteral( "Calculating frechetDistanceDensify requires a QGIS build based on GEOS 3.7 or later" ) );
#else
double distance = -1.0;
if ( !mGeos )
Expand Down

0 comments on commit 208c51b

Please sign in to comment.