Skip to content

Commit

Permalink
Fix GEOS 3.9 conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
strk authored and nyalldawson committed Nov 16, 2020
1 parent 2550d45 commit 53f4161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/pal/pointset.cpp
Expand Up @@ -833,7 +833,7 @@ double PointSet::minDistanceToPoint( double px, double py, double *rx, double *r
{
//for polygons, we want distance to exterior ring (not an interior point)
extRing = GEOSGetExteriorRing_r( geosctxt, mGeos );
#if GEOS_VERSION_MAJOR>3 || GEOS_VERSION_MINOR>=9
#if GEOS_VERSION_MAJOR>3 || ( GEOS_VERSION_MAJOR == 3 && GEOS_VERSION_MINOR>=9 )
if ( ! mGeosPreparedBoundary )
{
mGeosPreparedBoundary = GEOSPrepare_r( geosctxt, extRing );
Expand Down

0 comments on commit 53f4161

Please sign in to comment.