213 if ( ! (sq = GEOSCoordSeq_create(pa->
npoints, dims)) )
214 lwerror(
"Error creating GEOS Coordinate Sequence");
216 for ( i=0; i < pa->
npoints; i++ )
222 LWDEBUGF(4,
"Point: %g,%g,%g", p3d->
x, p3d->
y, p3d->
z);
230 #if POSTGIS_GEOS_VERSION < 33
233 if ( isinf(p2d->
x) || isinf(p2d->
y) || (dims == 3 && isinf(p3d->
z)) )
234 lwerror(
"Infinite coordinate value found in geometry.");
235 if ( isnan(p2d->
x) || isnan(p2d->
y) || (dims == 3 && isnan(p3d->
z)) )
236 lwerror(
"NaN coordinate value found in geometry.");
239 GEOSCoordSeq_setX(sq, i, p2d->
x);
240 GEOSCoordSeq_setY(sq, i, p2d->
y);
243 GEOSCoordSeq_setZ(sq, i, p3d->
z);
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
const POINT2D * getPoint2d_cp(const POINTARRAY *pa, int n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from...
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
const POINT3DZ * getPoint3dz_cp(const POINTARRAY *pa, int n)
Returns a POINT3DZ pointer into the POINTARRAY serialized_ptlist, suitable for reading from...
#define LWDEBUGF(level, msg,...)