PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwpoint_summary()

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

Definition at line 55 of file lwgeom_debug.c.

56 {
57  char *result;
58  char *pad="";
59  char *zmflags = lwgeom_flagchars((LWGEOM*)point);
60  size_t sz = 128+offset;
61 
62  result = (char *)lwalloc(sz);
63 
64  snprintf(result, sz, "%*.s%s[%s]",
65  offset, pad, lwtype_name(point->type),
66  zmflags);
67  return result;
68 }
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
static char * lwgeom_flagchars(LWGEOM *lwg)
Definition: lwgeom_debug.c:36
uint8_t type
Definition: liblwgeom.h:460

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

Referenced by lwgeom_summary().

Here is the call graph for this function:
Here is the caller graph for this function: