PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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}
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition cu_print.c:267
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)
uint8_t type
Definition liblwgeom.h:474

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

Referenced by lwgeom_summary().

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