Definition at line 125 of file lwgeom_debug.c.
References lwalloc(), LWDEBUG, lwgeom_flagchars(), lwtype_name(), LWPOLY::nrings, and LWGEOM::type.
Referenced by lwgeom_summary().
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");
#define LWDEBUG(level, msg)
static char * lwgeom_flagchars(LWGEOM *lwg)
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
void * lwalloc(size_t size)