From: Sandro Santilli Date: Thu, 23 Jun 2011 11:01:56 +0000 (+0000) Subject: Don't interpret types as flags in ST_Summary. Fixes bug #1054 (needs automated testing) X-Git-Tag: 2.0.0alpha1~1378 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c716811a5c39a656917654ab5f940992cf21a34;p=postgis Don't interpret types as flags in ST_Summary. Fixes bug #1054 (needs automated testing) git-svn-id: http://svn.osgeo.org/postgis/trunk@7449 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_debug.c b/postgis/lwgeom_debug.c index 27930acde..3ef6fb212 100644 --- a/postgis/lwgeom_debug.c +++ b/postgis/lwgeom_debug.c @@ -55,7 +55,7 @@ lwpoint_summary(LWPOINT *point, int offset) sprintf(result, "%*.s%s[%s]\n", offset, pad, lwtype_name(point->type), - lwgeom_typeflags(point->type)); + lwgeom_typeflags(point->flags)); return result; } @@ -69,7 +69,7 @@ lwline_summary(LWLINE *line, int offset) sprintf(result, "%*.s%s[%s] with %d points\n", offset, pad, lwtype_name(line->type), - lwgeom_typeflags(line->type), + lwgeom_typeflags(line->flags), line->points->npoints); return result; } @@ -90,7 +90,7 @@ lwcollection_summary(LWCOLLECTION *col, int offset) sprintf(result, "%*.s%s[%s] with %d elements\n", offset, pad, lwtype_name(col->type), - lwgeom_typeflags(col->type), + lwgeom_typeflags(col->flags), col->ngeoms); for (i=0; ingeoms; i++) @@ -125,7 +125,7 @@ lwpoly_summary(LWPOLY *poly, int offset) sprintf(result, "%*.s%s[%s] with %i rings\n", offset, pad, lwtype_name(poly->type), - lwgeom_typeflags(poly->type), + lwgeom_typeflags(poly->flags), poly->nrings); for (i=0; inrings; i++)