]> granicus.if.org Git - postgis/commitdiff
Fix boneheaded error in prepared intersects.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 4 Oct 2008 21:29:16 +0000 (21:29 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 4 Oct 2008 21:29:16 +0000 (21:29 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@3065 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_geos_c.c

index b0aa0618704bae29c9fd1fb2518504b8d7cb10c6..392531e355344d2c28cd84e107355914e91ad675 100644 (file)
@@ -4153,13 +4153,13 @@ Datum intersectsPrepared(PG_FUNCTION_ARGS)
                if ( prep_cache->argnum == 1 )
                {
                        GEOSGeom g = POSTGIS2GEOS(geom2);
-                       result = GEOSPreparedCovers( prep_cache->prepared_geom, g);
+                       result = GEOSPreparedIntersects( prep_cache->prepared_geom, g);
                        GEOSGeom_destroy(g);
                }
                else
                {
                        GEOSGeom g = POSTGIS2GEOS(geom1);
-                       result = GEOSPreparedCovers( prep_cache->prepared_geom, g);
+                       result = GEOSPreparedIntersects( prep_cache->prepared_geom, g);
                        GEOSGeom_destroy(g);
                }
        }