Definition at line 515 of file cu_libgeom.c.
525 testbox = (g->
bbox != NULL);
536 CU_ASSERT_DOUBLE_EQUAL(g->
bbox->
xmax, ymax, 0.00001);
537 CU_ASSERT_DOUBLE_EQUAL(g->
bbox->
ymax, xmax, 0.00001);
541 if (t == NULL) fprintf(stderr,
"In:%s", in);
543 fprintf(stderr,
"\nIn: %s\nOut: %s\nTheo: %s\n", in, t, out);
545 CU_ASSERT_STRING_EQUAL(t, out)
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
void lwgeom_swap_ordinates(LWGEOM *in, LWORD o1, LWORD o2)
Swap ordinate values in every vertex of the geometry.
char * lwgeom_to_wkt(const LWGEOM *geom, uint8_t variant, int precision, size_t *size_out)
WKT emitter function.
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
References LWGEOM::bbox, LW_PARSER_CHECK_NONE, lwfree(), lwgeom_add_bbox(), lwgeom_free(), lwgeom_from_wkt(), lwgeom_swap_ordinates(), lwgeom_to_wkt(), LWORD_X, LWORD_Y, WKT_EXTENDED, GBOX::xmax, and GBOX::ymax.
Referenced by test_lwgeom_swap_ordinates().