PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwpoint_summary()

static char* lwpoint_summary ( LWPOINT point,
int  offset 

Definition at line 55 of file lwgeom_debug.c.

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

Referenced by lwgeom_summary().

56 {
57  char *result;
58  char *pad="";
59  char *zmflags = lwgeom_flagchars((LWGEOM*)point);
61  result = (char *)lwalloc(128+offset);
63  sprintf(result, "%*.s%s[%s]",
64  offset, pad, lwtype_name(point->type),
65  zmflags);
66  return result;
67 }
uint8_t type
Definition: liblwgeom.h:406
static char * lwgeom_flagchars(LWGEOM *lwg)
Definition: lwgeom_debug.c:36
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
Definition: lwutil.c:216
void * lwalloc(size_t size)
Definition: lwutil.c:227
Here is the call graph for this function:
Here is the caller graph for this function: