PostGIS  2.1.10dev-r@@SVN_REVISION@@
static char* lwline_summary ( LWLINE line,
int  offset 

Definition at line 57 of file lwgeom_debug.c.

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

Referenced by lwgeom_summary().

58 {
59  char *result;
60  char *pad="";
61  char *zmflags = lwgeom_flagchars((LWGEOM*)line);
63  result = (char *)lwalloc(128+offset);
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:374
int npoints
Definition: liblwgeom.h:327
char ** result
Definition: liblwgeom.h:218
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:164
void * lwalloc(size_t size)
Definition: lwutil.c:175
Definition: liblwgeom.h:378

Here is the call graph for this function:

Here is the caller graph for this function: