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

svn_geos at osgeo.org svn_geos at osgeo.org
Tue Jul 5 05:52:29 EDT 2011


Author: strk
Date: 2011-07-05 02:52:29 -0700 (Tue, 05 Jul 2011)
New Revision: 3414

Modified:
   trunk/include/geos/geom/prep/PreparedPoint.h
   trunk/src/geom/prep/PreparedPoint.cpp
Log:
Fix bogus override of PreparedGeometry::intersect by PreparedPoint

Modified: trunk/include/geos/geom/prep/PreparedPoint.h
===================================================================
--- trunk/include/geos/geom/prep/PreparedPoint.h	2011-07-05 09:52:19 UTC (rev 3413)
+++ trunk/include/geos/geom/prep/PreparedPoint.h	2011-07-05 09:52:29 UTC (rev 3414)
@@ -49,7 +49,7 @@
 	 * The optimization here is that computing topology for the test
 	 * geometry is avoided. This can be significant for large geometries.
 	 */
-	bool intersects(geom::Geometry* g);
+	bool intersects(const geom::Geometry* g);
 
 };
 

Modified: trunk/src/geom/prep/PreparedPoint.cpp
===================================================================
--- trunk/src/geom/prep/PreparedPoint.cpp	2011-07-05 09:52:19 UTC (rev 3413)
+++ trunk/src/geom/prep/PreparedPoint.cpp	2011-07-05 09:52:29 UTC (rev 3414)
@@ -25,7 +25,7 @@
 namespace prep { // geos.geom.prep
 
 bool 
-PreparedPoint::intersects( geom::Geometry* g)
+PreparedPoint::intersects(const geom::Geometry* g)
 {
 	if (! envelopesIntersect( g)) return false;
 



More information about the geos-commits mailing list