PostGIS  2.1.10dev-r@@SVN_REVISION@@
static LWGEOM * lwpoint_locate_between_m ( LWPOINT lwpoint,
double  m0,
double  m1 
)
static

Definition at line 511 of file lwgeom_functions_lrs.c.

References lwpoint_clone(), lwpoint_getPoint3dm_p(), and POINT3DM::m.

Referenced by lwgeom_locate_between_m().

512 {
513  POINT3DM p3dm;
514 
515  POSTGIS_DEBUGF(2, "lwpoint_locate_between called for lwpoint %x", lwpoint);
516 
517  lwpoint_getPoint3dm_p(lwpoint, &p3dm);
518  if ( p3dm.m >= m0 && p3dm.m <= m1)
519  {
520  POSTGIS_DEBUG(3, " lwpoint... returning a clone of input");
521 
522  return (LWGEOM *)lwpoint_clone(lwpoint);
523  }
524  else
525  {
526  POSTGIS_DEBUG(3, " lwpoint... returning a clone of input");
527 
528  return NULL;
529  }
530 }
double m
Definition: liblwgeom.h:302
LWPOINT * lwpoint_clone(const LWPOINT *lwgeom)
Definition: lwpoint.c:206
int lwpoint_getPoint3dm_p(const LWPOINT *point, POINT3DM *out)
Definition: lwpoint.c:37

Here is the call graph for this function:

Here is the caller graph for this function: