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

◆ lwpoint_locate_between_m()

static LWGEOM * lwpoint_locate_between_m ( LWPOINT lwpoint,
double  m0,
double  m1 
)
static

Definition at line 519 of file lwgeom_functions_lrs.c.

520{
521 POINT3DM p3dm;
522
523 POSTGIS_DEBUGF(2, "lwpoint_locate_between called for lwpoint %p", lwpoint);
524
525 lwpoint_getPoint3dm_p(lwpoint, &p3dm);
526 if ( p3dm.m >= m0 && p3dm.m <= m1)
527 {
528 POSTGIS_DEBUG(3, " lwpoint... returning a clone of input");
529
530 return lwgeom_clone((LWGEOM *)lwpoint);
531 }
532 else
533 {
534 POSTGIS_DEBUG(3, " lwpoint... returning a clone of input");
535
536 return NULL;
537 }
538}
int lwpoint_getPoint3dm_p(const LWPOINT *point, POINT3DM *out)
Definition lwpoint.c:52
LWGEOM * lwgeom_clone(const LWGEOM *lwgeom)
Clone LWGEOM object.
Definition lwgeom.c:473
double m
Definition liblwgeom.h:394

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

Referenced by lwgeom_locate_between_m().

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