Definition at line 89 of file lwgeom_debug.c.
95 static char *nl =
"\n";
99 LWDEBUG(2,
"lwcollection_summary called");
101 result = (
char *)
lwalloc(size);
103 snprintf(result, size,
"%*.s%s[%s] with %d element%s",
108 ( col->
ngeoms > 1 ?
"s:\n" :
":\n")
111 for (i=0; i<col->
ngeoms; i++)
114 size += strlen(tmp)+1;
117 LWDEBUGF(4,
"Reallocated %d bytes for result", size);
118 if ( i > 0 ) strcat(result,nl);
124 LWDEBUG(3,
"lwcollection_summary returning");
void * lwrealloc(void *mem, size_t size)
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)
char * lwgeom_summary(const LWGEOM *lwgeom, int offset)
#define LWDEBUG(level, msg)
#define LWDEBUGF(level, msg,...)
References LWCOLLECTION::geoms, lwalloc(), LWDEBUG, LWDEBUGF, lwfree(), lwgeom_flagchars(), lwgeom_summary(), lwrealloc(), lwtype_name(), LWCOLLECTION::ngeoms, and LWCOLLECTION::type.
Referenced by lwgeom_summary().