Definition at line 552 of file lwgeom_functions_lrs.c.
References COLLECTIONTYPE, lwalloc(), lwcollection_construct(), lwline_construct(), lwpoint_construct(), MULTILINETYPE, MULTIPOINTTYPE, POINTARRAY::npoints, POINTARRAYSET::nptarrays, LWLINE::points, ptarray_locate_between_m(), POINTARRAYSET::ptarrays, and LWLINE::srid.
Referenced by lwgeom_locate_between_m().
560 const int pointflag=0x01;
561 const int lineflag=0x10;
564 POSTGIS_DEBUGF(2,
"lwline_locate_between called for lwline %p", lwline_in);
566 POSTGIS_DEBUGF(3,
" ptarray_locate... returned %d pointarrays",
577 for (i=0; i<ngeoms; i++)
588 geoms[i]=(
LWGEOM *)lwpoint;
596 geoms[i]=(
LWGEOM *)lwline;
603 lwpgerror(
"ptarray_locate_between_m returned a POINARRAY set containing POINTARRAY with 0 points");
620 lwline_in->
srid, NULL, ngeoms, geoms);
static POINTARRAYSET ptarray_locate_between_m(POINTARRAY *ipa, double m0, double m1)
LWCOLLECTION * lwcollection_construct(uint8_t type, int srid, GBOX *bbox, uint32_t ngeoms, LWGEOM **geoms)
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)
LWPOINT * lwpoint_construct(int srid, GBOX *bbox, POINTARRAY *point)
void * lwalloc(size_t size)