PostGIS  2.1.10dev-r@@SVN_REVISION@@
static char* lwgeom_flagchars ( LWGEOM lwg)
static

Definition at line 23 of file lwgeom_debug.c.

References LWGEOM::flags, FLAGS_GET_BBOX, FLAGS_GET_GEODETIC, FLAGS_GET_M, FLAGS_GET_Z, LWDEBUGF, LWGEOM::srid, SRID_UNKNOWN, and tflags.

Referenced by lwcollection_summary(), lwline_summary(), lwpoint_summary(), and lwpoly_summary().

24 {
25  int flagno = 0;
26  if ( FLAGS_GET_Z(lwg->flags) ) tflags[flagno++] = 'Z';
27  if ( FLAGS_GET_M(lwg->flags) ) tflags[flagno++] = 'M';
28  if ( FLAGS_GET_BBOX(lwg->flags) ) tflags[flagno++] = 'B';
29  if ( FLAGS_GET_GEODETIC(lwg->flags) ) tflags[flagno++] = 'G';
30  if ( lwg->srid != SRID_UNKNOWN ) tflags[flagno++] = 'S';
31  tflags[flagno] = '\0';
32 
33  LWDEBUGF(4, "Flags: %s - returning %p", flags, tflags);
34 
35  return tflags;
36 }
#define FLAGS_GET_GEODETIC(flags)
Definition: liblwgeom.h:109
uint8_t flags
Definition: liblwgeom.h:353
static char tflags[6]
Definition: lwgeom_debug.c:20
int32_t srid
Definition: liblwgeom.h:355
#define FLAGS_GET_BBOX(flags)
Definition: liblwgeom.h:108
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:154
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
Definition: liblwgeom.h:106
#define FLAGS_GET_M(flags)
Definition: liblwgeom.h:107
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:55

Here is the caller graph for this function: