From: Paul Ramsey Date: Fri, 9 Oct 2009 16:51:27 +0000 (+0000) Subject: One more fix for #260. X-Git-Tag: 1.5.0b1~382 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0b21a9582475a7337a702f083462dcb0ebda563;p=postgis One more fix for #260. git-svn-id: http://svn.osgeo.org/postgis/trunk@4633 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/g_box.c b/liblwgeom/g_box.c index 95636d3ae..fe23aa390 100644 --- a/liblwgeom/g_box.c +++ b/liblwgeom/g_box.c @@ -71,7 +71,8 @@ int gbox_overlaps(GBOX g1, GBOX g2) { /* Make sure our boxes have the same dimensionality */ - if( ! (FLAGS_NDIMS(g1.flags) == FLAGS_NDIMS(g2.flags) && + if( ! (FLAGS_HAS_Z(g1.flags) == FLAGS_HAS_Z(g2.flags) && + FLAGS_HAS_M(g1.flags) == FLAGS_HAS_M(g2.flags) && FLAGS_GET_GEODETIC(g1.flags) == FLAGS_GET_GEODETIC(g2.flags) ) ) { lwerror("gbox_overlaps: geometries have mismatched dimensionality");