PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ 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 }
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
POINTARRAY * points
Definition: liblwgeom.h:469
uint8_t type
Definition: liblwgeom.h:472
uint32_t npoints
Definition: liblwgeom.h:413

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

Referenced by lwgeom_summary().

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