PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_flagchars()

static char* lwgeom_flagchars ( LWGEOM lwg)
static

Definition at line 36 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().

37 {
38  int flagno = 0;
39  if ( FLAGS_GET_Z(lwg->flags) ) tflags[flagno++] = 'Z';
40  if ( FLAGS_GET_M(lwg->flags) ) tflags[flagno++] = 'M';
41  if ( FLAGS_GET_BBOX(lwg->flags) ) tflags[flagno++] = 'B';
42  if ( FLAGS_GET_GEODETIC(lwg->flags) ) tflags[flagno++] = 'G';
43  if ( lwg->srid != SRID_UNKNOWN ) tflags[flagno++] = 'S';
44  tflags[flagno] = '\0';
45 
46  LWDEBUGF(4, "Flags: %s - returning %p", lwg->flags, tflags);
47 
48  return tflags;
49 }
#define FLAGS_GET_GEODETIC(flags)
Definition: liblwgeom.h:143
uint8_t flags
Definition: liblwgeom.h:397
static char tflags[6]
Definition: lwgeom_debug.c:33
int32_t srid
Definition: liblwgeom.h:399
#define FLAGS_GET_BBOX(flags)
Definition: liblwgeom.h:142
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:188
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
Definition: liblwgeom.h:140
#define FLAGS_GET_M(flags)
Definition: liblwgeom.h:141
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88
Here is the caller graph for this function: