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

◆ lwgeom_locate_between()

LWCOLLECTION * lwgeom_locate_between ( const LWGEOM lwin,
double  from,
double  to,
double  offset 
)
extern

Determine the segments along a measured line that fall within the m-range given.

Return as a multiline or geometrycollection. Offset to left (positive) or right (negative).

Definition at line 917 of file lwlinearreferencing.c.

918{
919 if (!lwgeom_has_m(lwin))
920 lwerror("Input geometry does not have a measure dimension");
921
922 return lwgeom_clip_to_ordinate_range(lwin, 'M', from, to, offset);
923}
int lwgeom_has_m(const LWGEOM *geom)
Return LW_TRUE if geometry has M ordinates.
Definition lwgeom.c:923
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition lwutil.c:190
LWCOLLECTION * lwgeom_clip_to_ordinate_range(const LWGEOM *lwin, char ordinate, double from, double to, double offset)
Given a geometry clip based on the from/to range of one of its ordinates (x, y, z,...

References lwerror(), lwgeom_clip_to_ordinate_range(), and lwgeom_has_m().

Here is the call graph for this function: