164{
165 uint32_t i = 0;
169
170
172 {
173 if (i == 2)
174 {
176 double tmp;
177
182
184 }
185 else
186 {
188 }
189 i++;
190 }
191 CU_ASSERT_EQUAL(5, i);
193
194
196 {
198 { .x = 2, .y = 8 },
199 { .x = 3, .y = 4 },
200 { .x = 2, .y = 8 },
201 { .x = 17, .y = 3}
202 };
203
205 {
207
209
210 CU_ASSERT_EQUAL(p.
x, points[i].x);
211 CU_ASSERT_EQUAL(p.
y, points[i].y);
212 }
213
216}
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...
int lwpointiterator_peek(LWPOINTITERATOR *s, POINT4D *p)
Attempts to assigns the next point in the iterator to p.
void lwpointiterator_destroy(LWPOINTITERATOR *s)
Free all memory associated with the iterator.
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.
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)