PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwline_summary()

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

Definition at line 70 of file lwgeom_debug.c.

71 {
72  char *result;
73  char *pad="";
74  char *zmflags = lwgeom_flagchars((LWGEOM*)line);
75 
76  result = (char *)lwalloc(128+offset);
77 
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 }
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
static char * lwgeom_flagchars(LWGEOM *lwg)
Definition: lwgeom_debug.c:36
POINTARRAY * points
Definition: liblwgeom.h:425
uint8_t type
Definition: liblwgeom.h:421
uint32_t npoints
Definition: liblwgeom.h:374

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: