PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwline_summary()

static char* lwline_summary ( LWLINE line,
int  offset 

Definition at line 70 of file lwgeom_debug.c.

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

Referenced by lwgeom_summary().

71 {
72  char *result;
73  char *pad="";
74  char *zmflags = lwgeom_flagchars((LWGEOM*)line);
76  result = (char *)lwalloc(128+offset);
78  sprintf(result, "%*.s%s[%s] with %d points",
79  offset, pad, lwtype_name(line->type),
80  zmflags,
81  line->points->npoints);
82  return result;
83 }
uint8_t type
Definition: liblwgeom.h:418
int npoints
Definition: liblwgeom.h:371
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
Definition: liblwgeom.h:422
Here is the call graph for this function:
Here is the caller graph for this function: