From: Sandro Santilli Date: Fri, 26 Nov 2004 14:55:05 +0000 (+0000) Subject: Fixed a bug in lwcollection_same X-Git-Tag: pgis_1_0_0RC1~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82cbb8c5ec884dd903fc041589d83674f074dfd4;p=postgis Fixed a bug in lwcollection_same git-svn-id: http://svn.osgeo.org/postgis/trunk@1112 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/lwgeom/lwcollection.c b/lwgeom/lwcollection.c index 95639b6f6..dcdef6a07 100644 --- a/lwgeom/lwcollection.c +++ b/lwgeom/lwcollection.c @@ -300,9 +300,11 @@ lwcollection_same(const LWCOLLECTION *c1, const LWCOLLECTION *c2) if ( TYPE_GETTYPE(c1->type) != TYPE_GETTYPE(c2->type) ) return 0; if ( c1->ngeoms != c2->ngeoms ) return 0; + lwnotice("lwcollection_same called"); + for (i=0; ingeoms; i++) { - if ( ! lwgeom_same(c1->geoms[0], c2->geoms[1]) ) + if ( ! lwgeom_same(c1->geoms[i], c2->geoms[i]) ) return 0; } return 1;