2070 GEOSCoordSequence* coords;
2073 coords = GEOSCoordSeq_create(num_points, num_dims);
2082 lwerror(
"Incorrect num_points provided to lwgeom_get_geos_coordseq_2d");
2083 GEOSCoordSeq_destroy(coords);
2088 if(!GEOSCoordSeq_setX(coords, i, tmp.
x) || !GEOSCoordSeq_setY(coords, i, tmp.
y))
2090 GEOSCoordSeq_destroy(coords);
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(const LWGEOM *g)
Create a new LWPOINTITERATOR over supplied LWGEOM*.
void lwpointiterator_destroy(LWPOINTITERATOR *s)
Free all memory associated with the iterator.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.