PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ test_gbox_to_string_truncated()

static void test_gbox_to_string_truncated ( void  )
static

Definition at line 1578 of file cu_geodetic.c.

1579 {
1580  GBOX g = {
1581  .flags = 0,
1582  .xmin = -DBL_MAX,
1583  .xmax = -DBL_MAX,
1584  .ymin = -DBL_MAX,
1585  .ymax = -DBL_MAX,
1586  .zmin = -DBL_MAX,
1587  .zmax = -DBL_MAX,
1588  .mmin = -DBL_MAX,
1589  .mmax = -DBL_MAX,
1590  };
1591  FLAGS_SET_Z(g.flags, 1);
1592  FLAGS_SET_M(g.flags, 1);
1593  char *c = gbox_to_string(&g);
1594 
1595  ASSERT_STRING_EQUAL(c, "GBOX((-1.7976931e+308,-1.7976931e+308,-1.7976931e+308,-1.7976931e+308),(-1.7976931e+308,-1.7976931e+308,-1.7976931e+308,-1.7976931e+308))");
1596 
1597  lwfree(c);
1598 }
char * gbox_to_string(const GBOX *gbox)
Allocate a string representation of the GBOX, based on dimensionality of flags.
Definition: g_box.c:399
#define ASSERT_STRING_EQUAL(o, e)
void lwfree(void *mem)
Definition: lwutil.c:244
#define FLAGS_SET_M(flags, value)
Definition: liblwgeom.h:147
#define FLAGS_SET_Z(flags, value)
Definition: liblwgeom.h:146
uint8_t flags
Definition: liblwgeom.h:294

References ASSERT_STRING_EQUAL, GBOX::flags, FLAGS_SET_M, FLAGS_SET_Z, gbox_to_string(), and lwfree().

Referenced by geodetic_suite_setup().

Here is the call graph for this function:
Here is the caller graph for this function: