PostGIS  2.1.10dev-r@@SVN_REVISION@@
static char* lwpoint_summary ( LWPOINT point,
int  offset 

Definition at line 42 of file lwgeom_debug.c.

References lwalloc(), lwgeom_flagchars(), lwtype_name(), result, and LWPOINT::type.

Referenced by lwgeom_summary().

43 {
44  char *result;
45  char *pad="";
46  char *zmflags = lwgeom_flagchars((LWGEOM*)point);
48  result = (char *)lwalloc(128+offset);
50  sprintf(result, "%*.s%s[%s]",
51  offset, pad, lwtype_name(point->type),
52  zmflags);
53  return result;
54 }
uint8_t type
Definition: liblwgeom.h:363
char ** result
Definition: liblwgeom.h:218
static char * lwgeom_flagchars(LWGEOM *lwg)
Definition: lwgeom_debug.c:23
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
Definition: lwutil.c:164
void * lwalloc(size_t size)
Definition: lwutil.c:175

Here is the call graph for this function:

Here is the caller graph for this function: