Find the measure value at the location on the line closest to the point.
Definition at line 857 of file lwlinearreferencing.c.
863 lwerror(
"lwgeom_interpolate_point: null input geometry!");
866 lwerror(
"Input geometry does not have a measure dimension");
869 lwerror(
"Input geometry is empty");
871 switch ( lwin->
type )
int lwpoint_getPoint4d_p(const LWPOINT *point, POINT4D *out)
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
double ptarray_locate_point(const POINTARRAY *pa, const POINT4D *pt, double *dist, POINT4D *p_located)
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
int lwgeom_has_m(const LWGEOM *geom)
Return LW_TRUE if geometry has M ordinates.
int lwpoint_is_empty(const LWPOINT *point)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
References LINETYPE, lwerror(), lwgeom_as_lwline(), lwgeom_has_m(), lwgeom_is_empty(), lwpoint_getPoint4d_p(), lwpoint_is_empty(), lwtype_name(), POINT4D::m, LWLINE::points, ptarray_locate_point(), and LWGEOM::type.
Referenced by gserialized_distance_nd(), and ST_InterpolatePoint().