Definition at line 87 of file lwgeom_debug.c.
93 static char *nl =
"\n";
97 LWDEBUG(2,
"lwcollection_summary called");
101 sprintf(result,
"%*.s%s[%s] with %d elements\n",
106 for (i=0; i<col->
ngeoms; i++)
109 size += strlen(tmp)+1;
112 LWDEBUGF(4,
"Reallocated %d bytes for result", size);
113 if ( i > 0 ) strcat(result,nl);
119 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().