Definition at line 1045 of file cu_libgeom.c.
References ASSERT_DOUBLE_EQUAL, ASSERT_STRING_EQUAL, LWGEOM::bbox, LW_PARSER_CHECK_NONE, lwfree(), lwgeom_add_bbox(), lwgeom_free(), lwgeom_from_wkt(), lwgeom_scale(), lwgeom_to_ewkt(), POINT4D::m, GBOX::mmax, GBOX::mmin, test_gbox_same_2d(), POINT4D::x, GBOX::xmax, GBOX::xmin, POINT4D::y, GBOX::ymax, GBOX::ymin, POINT4D::z, GBOX::zmax, and GBOX::zmin.
Referenced by libgeom_suite_setup().
1052 geom =
lwgeom_from_wkt(
"SRID=4326;GEOMETRYCOLLECTION(POINT(0 1 2 3),POLYGON((-1 -1 0 1,-1 2.5 0 1,2 2 0 1,2 -1 0 1,-1 -1 0 1),(0 0 1 2,0 1 1 2,1 1 1 2,1 0 2 3,0 0 1 2)),LINESTRING(0 0 0 0, 1 2 3 4))",
LW_PARSER_CHECK_NONE);
1053 factor.
x = 2; factor.
y = 3; factor.
z = 4; factor.
m = 5;
1056 ASSERT_STRING_EQUAL(out_ewkt,
"SRID=4326;GEOMETRYCOLLECTION(POINT(0 3 8 15),POLYGON((-2 -3 0 5,-2 7.5 0 5,4 6 0 5,4 -3 0 5,-2 -3 0 5),(0 0 4 10,0 3 4 10,2 3 4 10,2 0 8 15,0 0 4 10)),LINESTRING(0 0 0 0,2 6 12 20))");
1062 factor.
x = 2; factor.
y = 3; factor.
z = 4; factor.
m = 5;
#define ASSERT_STRING_EQUAL(o, e)
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an alloced string.
void lwgeom_free(LWGEOM *geom)
void lwgeom_scale(LWGEOM *geom, const POINT4D *factors)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
#define LW_PARSER_CHECK_NONE
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
#define ASSERT_DOUBLE_EQUAL(o, e)