Allocate a string representation of the GBOX, based on dimensionality of flags.
Definition at line 404 of file g_box.c.
References GBOX::flags, FLAGS_GET_GEODETIC, FLAGS_GET_M, FLAGS_GET_Z, lwalloc(), GBOX::mmax, GBOX::mmin, GBOX::xmax, GBOX::xmin, GBOX::ymax, GBOX::ymin, GBOX::zmax, and GBOX::zmin.
Referenced by _postgis_gserialized_sel(), gbox_check_poles(), geography_bestsrid(), geography_point_outside(), gserialized_gist_sel(), lwpoly_covers_point2d(), nd_box_from_gbox(), test_gbox_from_spherical_coordinates(), test_gbox_to_string_truncated(), and test_gserialized_get_gbox_geocentric().
410 return strdup(
"NULL POINTER");
416 snprintf(str, sz,
"GBOX((%.8g,%.8g,%.8g),(%.8g,%.8g,%.8g))", gbox->
xmin, gbox->
ymin, gbox->
zmin, gbox->
xmax, gbox->
ymax, gbox->
zmax);
421 snprintf(str, sz,
"GBOX((%.8g,%.8g,%.8g,%.8g),(%.8g,%.8g,%.8g,%.8g))", gbox->
xmin, gbox->
ymin, gbox->
zmin, gbox->
mmin, gbox->
xmax, gbox->
ymax, gbox->
zmax, gbox->
mmax);
426 snprintf(str, sz,
"GBOX((%.8g,%.8g,%.8g),(%.8g,%.8g,%.8g))", gbox->
xmin, gbox->
ymin, gbox->
zmin, gbox->
xmax, gbox->
ymax, gbox->
zmax);
431 snprintf(str, sz,
"GBOX((%.8g,%.8g,%.8g),(%.8g,%.8g,%.8g))", gbox->
xmin, gbox->
ymin, gbox->
mmin, gbox->
xmax, gbox->
ymax, gbox->
mmax);
434 snprintf(str, sz,
"GBOX((%.8g,%.8g),(%.8g,%.8g))", gbox->
xmin, gbox->
ymin, gbox->
xmax, gbox->
ymax);
#define FLAGS_GET_GEODETIC(flags)
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
#define FLAGS_GET_M(flags)
void * lwalloc(size_t size)