PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwline_summary()

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

Definition at line 57 of file lwgeom_debug.c.

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

Referenced by lwgeom_summary().

58 {
59  char *result;
60  char *pad="";
61  char *zmflags = lwgeom_flagchars((LWGEOM*)line);
62 
63  result = (char *)lwalloc(128+offset);
64 
65  sprintf(result, "%*.s%s[%s] with %d points",
66  offset, pad, lwtype_name(line->type),
67  zmflags,
68  line->points->npoints);
69  return result;
70 }
uint8_t type
Definition: liblwgeom.h:402
int npoints
Definition: liblwgeom.h:355
static char * lwgeom_flagchars(LWGEOM *lwg)
Definition: lwgeom_debug.c:23
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
Definition: lwutil.c:188
void * lwalloc(size_t size)
Definition: lwutil.c:199
POINTARRAY * points
Definition: liblwgeom.h:406
Here is the call graph for this function:
Here is the caller graph for this function: