PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ lwpoint_summary()

static char* lwpoint_summary ( LWPOINT point,
int  offset 
)
static

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);
60 
61  result = (char *)lwalloc(128+offset);
62 
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:409
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:218
void * lwalloc(size_t size)
Definition: lwutil.c:229
Here is the call graph for this function:
Here is the caller graph for this function: