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

Definition at line 42 of file lwgeom_debug.c.

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

Referenced by lwgeom_summary().

43 {
44  char *result;
45  char *pad="";
46  char *zmflags = lwgeom_flagchars((LWGEOM*)point);
47 
48  result = (char *)lwalloc(128+offset);
49 
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:391
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:188
void * lwalloc(size_t size)
Definition: lwutil.c:199

Here is the call graph for this function:

Here is the caller graph for this function: