109{
110 uint32_t i;
111 uint32_t j = 0;
112
113 for (i = 0; i <
sizeof(
inputs)/
sizeof(
char*); i++)
114 {
118
120 {
121
122
128
131
132 CU_ASSERT_EQUAL(p1.
x, p2.
x);
133 CU_ASSERT_EQUAL(p1.
y, p2.
y);
134
136 CU_ASSERT_EQUAL(p1.
z, p2.
z);
137
139 CU_ASSERT_EQUAL(p1.
m, p2.
m);
140 }
141
143
146 }
147}
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
LWPOINTITERATOR * lwpointiterator_create(const LWGEOM *g)
Create a new LWPOINTITERATOR over supplied LWGEOM*.
int lwpointiterator_next(LWPOINTITERATOR *s, POINT4D *p)
Attempts to assign the next point in the iterator to p, and advances the iterator to the next point.
LWPOINTITERATOR * lwpointiterator_create_rw(LWGEOM *g)
Create a new LWPOINTITERATOR over supplied LWGEOM* Supports modification of coordinates during iterat...
void lwpointiterator_destroy(LWPOINTITERATOR *s)
Free all memory associated with the iterator.
int lwgeom_has_z(const LWGEOM *geom)
Return LW_TRUE if geometry has Z ordinates.
int lwpointiterator_modify_next(LWPOINTITERATOR *s, const POINT4D *p)
Attempts to replace the next point int the iterator with p, and advances the iterator to the next poi...
int lwpointiterator_has_next(LWPOINTITERATOR *s)
Returns LW_TRUE if there is another point available in the iterator.
int lwgeom_has_m(const LWGEOM *geom)
Return LW_TRUE if geometry has M ordinates.
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)