From: Paul Ramsey Date: Tue, 19 Aug 2014 20:48:54 +0000 (+0000) Subject: #2605 armel: _ST_Covers() returns true for point in hole X-Git-Tag: 2.2.0rc1~886 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46f129b521fa8aead70278779d95b3cd7b4ffaa6;p=postgis #2605 armel: _ST_Covers() returns true for point in hole git-svn-id: http://svn.osgeo.org/postgis/trunk@12896 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_geos.c b/postgis/lwgeom_geos.c index 5723ef971..f79ed6f6c 100644 --- a/postgis/lwgeom_geos.c +++ b/postgis/lwgeom_geos.c @@ -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;