284 int append_points = 0;
295 lwerror(
"ptarray_to_GEOSCoordSeq called with fix_ring and 0 vertices in ring, cannot fix");
305 #if POSTGIS_GEOS_VERSION >= 31000
306 if (append_points == 0) {
315 if (!(sq = GEOSCoordSeq_create(pa->
npoints + append_points, dims)))
320 for (i = 0; i < pa->
npoints; i++)
326 LWDEBUGF(4,
"Point: %g,%g,%g", p3d->
x, p3d->
y, p3d->
z);
334 #if POSTGIS_GEOS_VERSION < 30800
335 GEOSCoordSeq_setX(sq, i, p2d->
x);
336 GEOSCoordSeq_setY(sq, i, p2d->
y);
337 if (dims == 3) GEOSCoordSeq_setZ(sq, i, p3d->
z);
340 GEOSCoordSeq_setXYZ(sq, i, p2d->
x, p2d->
y, p3d->
z);
342 GEOSCoordSeq_setXY(sq, i, p2d->
x, p2d->
y);
356 for (i = pa->
npoints; i < pa->npoints + append_points; i++)
358 #if POSTGIS_GEOS_VERSION < 30800
359 GEOSCoordSeq_setX(sq, i, p2d->
x);
360 GEOSCoordSeq_setY(sq, i, p2d->
y);
362 GEOSCoordSeq_setXY(sq, i, p2d->
x, p2d->
y);
365 if (dims == 3) GEOSCoordSeq_setZ(sq, i, p3d->
z);
#define FLAGS_GET_Z(flags)
#define FLAGS_GET_M(flags)
int ptarray_is_closed_2d(const POINTARRAY *pa)
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static const POINT2D * getPoint2d_cp(const POINTARRAY *pa, uint32_t n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from.
static const POINT3D * getPoint3d_cp(const POINTARRAY *pa, uint32_t n)
Returns a POINT3D pointer into the POINTARRAY serialized_ptlist, suitable for reading from.
uint8_t * serialized_pointlist