[geos-commits] r3988 - in trunk: include/geos/geom/prep src/geom/prep

svn_geos at osgeo.org svn_geos at osgeo.org
Fri Jun 20 00:48:30 PDT 2014


Author: strk
Date: 2014-06-20 00:48:30 -0700 (Fri, 20 Jun 2014)
New Revision: 3988

Modified:
   trunk/include/geos/geom/prep/PreparedPoint.h
   trunk/src/geom/prep/PreparedPoint.cpp
Log:
Fix PreparedPoint::intersects signature to match the upper virtual

Thanks Mikhail Veltishchev for pointing out
See https://github.com/libgeos/libgeos/pull/33

Modified: trunk/include/geos/geom/prep/PreparedPoint.h
===================================================================
--- trunk/include/geos/geom/prep/PreparedPoint.h	2014-06-20 07:39:23 UTC (rev 3987)
+++ trunk/include/geos/geom/prep/PreparedPoint.h	2014-06-20 07:48:30 UTC (rev 3988)
@@ -48,7 +48,7 @@
 	 * The optimization here is that computing topology for the test
 	 * geometry is avoided. This can be significant for large geometries.
 	 */
-	bool intersects(const geom::Geometry* g);
+	bool intersects(const geom::Geometry* g) const;
 
 };
 

Modified: trunk/src/geom/prep/PreparedPoint.cpp
===================================================================
--- trunk/src/geom/prep/PreparedPoint.cpp	2014-06-20 07:39:23 UTC (rev 3987)
+++ trunk/src/geom/prep/PreparedPoint.cpp	2014-06-20 07:48:30 UTC (rev 3988)
@@ -24,7 +24,7 @@
 namespace prep { // geos.geom.prep
 
 bool 
-PreparedPoint::intersects(const geom::Geometry* g)
+PreparedPoint::intersects(const geom::Geometry* g) const
 {
 	if (! envelopesIntersect( g)) return false;
 



More information about the geos-commits mailing list