]> granicus.if.org Git - postgis/commitdiff
#2605 armel: _ST_Covers() returns true for point in hole
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 19 Aug 2014 20:48:54 +0000 (20:48 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 19 Aug 2014 20:48:54 +0000 (20:48 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12896 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_geos.c

index 5723ef9715caad7243de5c3d99c53bb97840f5f3..f79ed6f6c6a9334480a92a375f3efd91e773e478 100644 (file)
@@ -1999,7 +1999,7 @@ Datum contains(PG_FUNCTION_ARGS)
        LWGEOM *lwgeom;
        LWPOINT *point;
        RTREE_POLY_CACHE *poly_cache;
-       bool result;
+       int result;
        PrepGeomCache *prep_cache;
 
        geom1 = (GSERIALIZED *)  PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
@@ -2222,7 +2222,7 @@ Datum covers(PG_FUNCTION_ARGS)
 {
        GSERIALIZED *geom1;
        GSERIALIZED *geom2;
-       bool result;
+       int result;
        GBOX box1, box2;
        int type1, type2;
        LWGEOM *lwgeom;
@@ -2377,7 +2377,7 @@ Datum coveredby(PG_FUNCTION_ARGS)
        GSERIALIZED *geom1;
        GSERIALIZED *geom2;
        GEOSGeometry *g1, *g2;
-       bool result;
+       int result;
        GBOX box1, box2;
        LWGEOM *lwgeom;
        LWPOINT *point;
@@ -2503,7 +2503,7 @@ Datum crosses(PG_FUNCTION_ARGS)
        GSERIALIZED *geom1;
        GSERIALIZED *geom2;
        GEOSGeometry *g1, *g2;
-       bool result;
+       int result;
        GBOX box1, box2;
 
        geom1 = (GSERIALIZED *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
@@ -2571,7 +2571,7 @@ Datum geos_intersects(PG_FUNCTION_ARGS)
        GSERIALIZED *geom1;
        GSERIALIZED *geom2;
        GSERIALIZED *serialized_poly;
-       bool result;
+       int result;
        GBOX box1, box2;
        int type1, type2, polytype;
        LWPOINT *point;