PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwline_filterm()

static LWLINE * lwline_filterm ( LWLINE line,
double  min,
double  max,
int  returnm 
)
static

Definition at line 99 of file lwmval.c.

100{
101 LWDEBUGF(2, "Entered %s", __func__);
102
103 POINTARRAY *pa;
104 pa = ptarray_filterm(line->points, min, max,returnm);
105
106 if(pa->npoints < 2 )
107 {
108 ptarray_free(pa);
109 return NULL;
110 }
111
112 return lwline_construct(line->srid, NULL, pa);
113}
LWLINE * lwline_construct(int32_t srid, GBOX *bbox, POINTARRAY *points)
Definition lwline.c:42
void ptarray_free(POINTARRAY *pa)
Definition ptarray.c:327
#define LWDEBUGF(level, msg,...)
Definition lwgeom_log.h:106
static POINTARRAY * ptarray_filterm(POINTARRAY *pa, double min, double max, int returnm)
Definition lwmval.c:31
POINTARRAY * points
Definition liblwgeom.h:483
int32_t srid
Definition liblwgeom.h:484
uint32_t npoints
Definition liblwgeom.h:427

References LWDEBUGF, lwline_construct(), POINTARRAY::npoints, LWLINE::points, ptarray_filterm(), ptarray_free(), and LWLINE::srid.

Referenced by lwgeom_filter_m_ignore_null().

Here is the call graph for this function:
Here is the caller graph for this function: