Find the measure value at the location on the line closest to the point.
Definition at line 851 of file lwlinearreferencing.c.
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().
857 lwerror(
"lwgeom_interpolate_point: null input geometry!");
860 lwerror(
"Input geometry does not have a measure dimension");
863 lwerror(
"Input geometry is empty");
865 switch ( lwin->
type )
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 lwpoint_getPoint4d_p(const LWPOINT *point, POINT4D *out)
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
int lwpoint_is_empty(const LWPOINT *point)
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.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.