PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ 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 }
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:328
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwline.c:42
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88
static POINTARRAY * ptarray_filterm(POINTARRAY *pa, double min, double max, int returnm)
Definition: lwmval.c:31
POINTARRAY * points
Definition: liblwgeom.h:425
int32_t srid
Definition: liblwgeom.h:424
uint32_t npoints
Definition: liblwgeom.h:374

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: