179 for (i = 0; i < g->
ngeoms; i++)
187 lwerror(
"Geometric median: getPoint4d_p reported failure on point (POINT(%g %g %g %g), number %d of %d in input).", points[n].
x, points[n].
y, points[n].z, points[n].m, i, g->
ngeoms);
204 lwerror(
"Geometric median input contains points with negative weights (POINT(%g %g %g %g), number %d of %d in input). Implementation can't guarantee global minimum convergence.", points[n].
x, points[n].
y, points[n].z, points[n].m, i, g->
ngeoms);
210 if (points[n].m > DBL_EPSILON) n++;
220 #if PARANOIA_LEVEL > 0
LWGEOM * lwcollection_getsubgeom(LWCOLLECTION *col, int gnum)
int lwgeom_has_z(const LWGEOM *geom)
Return LW_TRUE if geometry has Z ordinates.
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
int getPoint4d_p(const POINTARRAY *pa, uint32_t n, POINT4D *point)
void * lwalloc(size_t size)
int lwgeom_has_m(const LWGEOM *geom)
Return LW_TRUE if geometry has M ordinates.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.