PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ test_gbox_to_string_truncated()

static void test_gbox_to_string_truncated ( void  )
static

Definition at line 1595 of file cu_geodetic.c.

1596 {
1597  GBOX g = {
1598  .flags = 0,
1599  .xmin = -DBL_MAX,
1600  .xmax = -DBL_MAX,
1601  .ymin = -DBL_MAX,
1602  .ymax = -DBL_MAX,
1603  .zmin = -DBL_MAX,
1604  .zmax = -DBL_MAX,
1605  .mmin = -DBL_MAX,
1606  .mmax = -DBL_MAX,
1607  };
1608  FLAGS_SET_Z(g.flags, 1);
1609  FLAGS_SET_M(g.flags, 1);
1610  char *c = gbox_to_string(&g);
1611 
1612  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))");
1613 
1614  lwfree(c);
1615 }
char * gbox_to_string(const GBOX *gbox)
Allocate a string representation of the GBOX, based on dimensionality of flags.
Definition: gbox.c:392
#define ASSERT_STRING_EQUAL(o, e)
void lwfree(void *mem)
Definition: lwutil.c:242
#define FLAGS_SET_M(flags, value)
Definition: liblwgeom.h:187
#define FLAGS_SET_Z(flags, value)
Definition: liblwgeom.h:186
lwflags_t flags
Definition: liblwgeom.h:339

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: