PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwpoint_filterm()

static LWPOINT* lwpoint_filterm ( LWPOINT pt,
double  min,
double  max,
int  returnm 
)
static

Definition at line 83 of file lwmval.c.

84 {
85  LWDEBUGF(2, "Entered %s", __func__);
86 
87  POINTARRAY *pa;
88 
89  pa = ptarray_filterm(pt->point, min, max,returnm);
90  if(pa->npoints < 1)
91  {
92  ptarray_free(pa);
93  return NULL;
94  }
95  return lwpoint_construct(pt->srid, NULL, pa);
96 
97 }
LWPOINT * lwpoint_construct(int srid, GBOX *bbox, POINTARRAY *point)
Definition: lwpoint.c:129
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:328
#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 * point
Definition: liblwgeom.h:414
int32_t srid
Definition: liblwgeom.h:413
uint32_t npoints
Definition: liblwgeom.h:374

References LWDEBUGF, lwpoint_construct(), POINTARRAY::npoints, LWPOINT::point, ptarray_filterm(), ptarray_free(), and LWPOINT::srid.

Referenced by lwgeom_filter_m_ignore_null().

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