[geos-commits] r4023 - trunk/src/operation/intersection

svn_geos at osgeo.org svn_geos at osgeo.org
Thu Sep 25 08:21:45 PDT 2014


Author: strk
Date: 2014-09-25 08:21:45 -0700 (Thu, 25 Sep 2014)
New Revision: 4023

Modified:
   trunk/src/operation/intersection/RectangleIntersection.cpp
Log:
Fix bug in RectangleIntersection (was cought by testsuite too!)

Modified: trunk/src/operation/intersection/RectangleIntersection.cpp
===================================================================
--- trunk/src/operation/intersection/RectangleIntersection.cpp	2014-09-25 15:17:18 UTC (rev 4022)
+++ trunk/src/operation/intersection/RectangleIntersection.cpp	2014-09-25 15:21:45 UTC (rev 4023)
@@ -470,7 +470,7 @@
     const Coordinate rectCorner(rect.xmin(), rect.ymin());
     if ( CGAlgorithms::locatePointInRing(rectCorner,
                           *g->getExteriorRing()->getCoordinatesRO())
-         == Location::EXTERIOR )
+         != Location::INTERIOR )
     {
       return;
     }



More information about the geos-commits mailing list