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

◆ lwline_summary()

static char * lwline_summary ( LWLINE line,
int  offset 
)
static

Definition at line 71 of file lwgeom_debug.c.

72{
73 char *result;
74 char *pad="";
75 char *zmflags = lwgeom_flagchars((LWGEOM*)line);
76 size_t sz = 128+offset;
77
78 result = (char *)lwalloc(sz);
79
80 snprintf(result, sz, "%*.s%s[%s] with %d points",
81 offset, pad, lwtype_name(line->type),
82 zmflags,
83 line->points->npoints);
84 return result;
85}
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)
POINTARRAY * points
Definition liblwgeom.h:483
uint8_t type
Definition liblwgeom.h:486
uint32_t npoints
Definition liblwgeom.h:427

References lwalloc(), lwgeom_flagchars(), lwtype_name(), POINTARRAY::npoints, LWLINE::points, result, and LWLINE::type.

Referenced by lwgeom_summary().

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