279 int append_points = 0;
290 lwerror(
"ptarray_to_GEOSCoordSeq called with fix_ring and 0 vertices in ring, cannot fix");
300 #if POSTGIS_GEOS_VERSION >= 31000
301 if (append_points == 0) {
310 if (!(sq = GEOSCoordSeq_create(pa->
npoints + append_points, dims)))
315 for (i = 0; i < pa->
npoints; i++)
321 LWDEBUGF(4,
"Point: %g,%g,%g", p3d->
x, p3d->
y, p3d->
z);
330 GEOSCoordSeq_setXYZ(sq, i, p2d->
x, p2d->
y, p3d->
z);
332 GEOSCoordSeq_setXY(sq, i, p2d->
x, p2d->
y);
345 for (i = pa->
npoints; i < pa->npoints + append_points; i++)
348 GEOSCoordSeq_setXY(sq, i, p2d->
x, p2d->
y);
350 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 void lwerror(const char *fmt,...) __attribute__((format(printf
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