From be40ee7eb72c834736d6da33c5e5c9c8882c2c8a Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Mon, 6 Oct 2008 19:51:56 +0000 Subject: [PATCH] Fix slight error in box shortcut logic in prepared intersects. git-svn-id: http://svn.osgeo.org/postgis/trunk@3070 b70326c6-7e19-0410-871a-916f4a2858ee --- lwgeom/lwgeom_geos_c.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lwgeom/lwgeom_geos_c.c b/lwgeom/lwgeom_geos_c.c index 1c9036786..62ab6d018 100644 --- a/lwgeom/lwgeom_geos_c.c +++ b/lwgeom/lwgeom_geos_c.c @@ -3936,7 +3936,7 @@ Datum containsPrepared(PG_FUNCTION_ARGS) getbox2d_p(SERIALIZED_FORM(geom2), &box2) ) { if (( box2.xmin < box1.xmin ) || ( box2.xmax > box1.xmax ) || - ( box2.ymin < box1.ymin ) || ( box2.ymax > box1.ymax )) + ( box2.ymin < box1.ymin ) || ( box2.ymax > box1.ymax )) PG_RETURN_BOOL(FALSE); } @@ -4006,7 +4006,7 @@ Datum containsProperlyPrepared(PG_FUNCTION_ARGS) getbox2d_p(SERIALIZED_FORM(geom2), &box2) ) { if (( box2.xmin < box1.xmin ) || ( box2.xmax > box1.xmax ) || - ( box2.ymin < box1.ymin ) || ( box2.ymax > box1.ymax )) + ( box2.ymin < box1.ymin ) || ( box2.ymax > box1.ymax )) PG_RETURN_BOOL(FALSE); } @@ -4072,7 +4072,7 @@ Datum coversPrepared(PG_FUNCTION_ARGS) getbox2d_p(SERIALIZED_FORM(geom2), &box2) ) { if (( box2.xmin < box1.xmin ) || ( box2.xmax > box1.xmax ) || - ( box2.ymin < box1.ymin ) || ( box2.ymax > box1.ymax )) + ( box2.ymin < box1.ymin ) || ( box2.ymax > box1.ymax )) PG_RETURN_BOOL(FALSE); } @@ -4140,7 +4140,7 @@ Datum intersectsPrepared(PG_FUNCTION_ARGS) getbox2d_p(SERIALIZED_FORM(geom2), &box2) ) { if (( box2.xmax < box1.xmin ) || ( box2.xmin > box1.xmax ) || - ( box2.ymax < box1.ymin ) || ( box2.ymin > box2.ymax )) + ( box2.ymax < box1.ymin ) || ( box2.ymin > box1.ymax )) PG_RETURN_BOOL(FALSE); } -- 2.50.1