Definition at line 125 of file lwgeom_debug.c.
128 size_t size = 64*(poly->
nrings+1)+128;
132 static char *nl =
"\n";
135 LWDEBUG(2,
"lwpoly_summary called");
137 result = (
char *)
lwalloc(size);
139 sprintf(result,
"%*.s%s[%s] with %i rings\n",
144 for (i=0; i<poly->
nrings; i++)
146 sprintf(tmp,
"%s ring %i has %i points",
148 if ( i > 0 ) strcat(result,nl);
152 LWDEBUG(3,
"lwpoly_summary returning");
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
void * lwalloc(size_t size)
static char * lwgeom_flagchars(LWGEOM *lwg)
#define LWDEBUG(level, msg)
References lwalloc(), LWDEBUG, lwgeom_flagchars(), lwtype_name(), POINTARRAY::npoints, LWPOLY::nrings, LWPOLY::rings, and LWPOLY::type.
Referenced by lwgeom_summary().