222 if ( where < 0 || where >= npoints )
224 lwerror(
"%s: index %d is not in range of number of vertices (%d) in input", __func__, where, npoints);
228 for ( i = 0; i < lwcmp->ngeoms; i++ )
230 LWGEOM* part = lwcmp->geoms[i];
232 if ( where >= count && where < count + npoints_part )
238 count += npoints_part;
LWPOINT * lwline_get_lwpoint(const LWLINE *line, int where)
Returns freshly allocated LWPOINT that corresponds to the index where.
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members) ...
int lwgeom_count_vertices(const LWGEOM *geom)
Count the total number of vertices in any LWGEOM.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.