Definition at line 87 of file lwgeom_debug.c.
References lwalloc(), LWDEBUG, LWDEBUGF, lwfree(), lwgeom_flagchars(), lwgeom_summary(), lwrealloc(), lwtype_name(), and LWGEOM::type.
Referenced by lwgeom_summary().
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");
char * lwgeom_summary(const LWGEOM *lwgeom, int offset)
#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 * lwrealloc(void *mem, size_t size)
void * lwalloc(size_t size)
#define LWDEBUGF(level, msg,...)