PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwgeom_flagchars()

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", lwg->flags, tflags);
34 
35  return tflags;
36 }
#define FLAGS_GET_GEODETIC(flags)
Definition: liblwgeom.h:127
uint8_t flags
Definition: liblwgeom.h:381
static char tflags[6]
Definition: lwgeom_debug.c:20
int32_t srid
Definition: liblwgeom.h:383
#define FLAGS_GET_BBOX(flags)
Definition: liblwgeom.h:126
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:172
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
Definition: liblwgeom.h:124
#define FLAGS_GET_M(flags)
Definition: liblwgeom.h:125
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:55
Here is the caller graph for this function: