Definition at line 690 of file cu_ptarray.c.
References ASSERT_STRING_EQUAL, lwfree(), lwgeom_as_lwline(), lwgeom_from_text(), lwgeom_to_text(), lwline_as_lwgeom(), lwline_free(), POINT4D::m, LWLINE::points, ptarray_scale(), ptarray_suite_setup(), POINT4D::x, POINT4D::y, and POINT4D::z.
Referenced by ptarray_suite_setup().
698 wkt =
"LINESTRING ZM (0 1 2 3,1 2 3 0,-2 -3 0 -1,-3 0 -1 -2)";
702 factor.
x = factor.
y = factor.
z = factor.
m = 1;
709 wkt =
"LINESTRING ZM (0 1 2 3,2 2 3 0,-4 -3 0 -1,-6 0 -1 -2)";
715 factor.
x = 1; factor.
y = 3;
716 wkt =
"LINESTRING ZM (0 3 2 3,2 6 3 0,-4 -9 0 -1,-6 0 -1 -2)";
722 factor.
x = 1; factor.
y = 1; factor.
z = -2;
723 wkt =
"LINESTRING ZM (0 3 -4 3,2 6 -6 0,-4 -9 -0 -1,-6 0 2 -2)";
729 factor.
x = 1; factor.
y = 1; factor.
z = 1; factor.
m = 2;
730 wkt =
"LINESTRING ZM (0 3 -4 6,2 6 -6 0,-4 -9 -0 -2,-6 0 2 -4)";
void ptarray_scale(POINTARRAY *pa, const POINT4D *factor)
Scale a pointarray.
#define ASSERT_STRING_EQUAL(o, e)
void lwline_free(LWLINE *line)
static LWGEOM * lwgeom_from_text(const char *str)
LWGEOM * lwline_as_lwgeom(const LWLINE *obj)
static char * lwgeom_to_text(const LWGEOM *geom)
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)