1462 pt.
x = 1.2345678901234;
1463 pt.
y = 2.3456789012345;
1464 pt.
z = 3.4567890123456;
1465 pt.
m = 4.5678901234567;
1488 CU_ASSERT_DOUBLE_EQUAL(pt1.
x, pt2.
x, pow(10, -1*
precision));
1489 CU_ASSERT_DOUBLE_EQUAL(pt1.
y, pt2.
y, pow(10, -1*
precision));
1490 CU_ASSERT_DOUBLE_EQUAL(pt1.
z, pt2.
z, pow(10, -1*
precision));
1491 CU_ASSERT_DOUBLE_EQUAL(pt1.
m, pt2.
m, pow(10, -1*
precision));
POINT4D getPoint4d(const POINTARRAY *pa, uint32_t n)
void lwgeom_trim_bits_in_place(LWGEOM *geom, int32_t prec_x, int32_t prec_y, int32_t prec_z, int32_t prec_m)
Trim the bits of an LWGEOM in place, to optimize it for compression.
LWGEOM * lwgeom_clone_deep(const LWGEOM *lwgeom)
Deep clone an LWGEOM, everything is copied.
int ptarray_insert_point(POINTARRAY *pa, const POINT4D *p, uint32_t where)
Insert a point into an existing POINTARRAY.
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
#define LW_TRUE
Return types for functions with status returns.
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)
void lwline_free(LWLINE *line)