PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ lw_dist3d_point_line()

int lw_dist3d_point_line ( LWPOINT point,
LWLINE line,
DISTPTS3D dl 
)

point to line calculation

Definition at line 718 of file measures3d.c.

719 {
720  POINT3DZ p;
721  POINTARRAY *pa = line->points;
722  LWDEBUG(2, "lw_dist3d_point_line is called");
723 
724  getPoint3dz_p(point->point, 0, &p);
725  return lw_dist3d_pt_ptarray(&p, pa, dl);
726 }
int getPoint3dz_p(const POINTARRAY *pa, uint32_t n, POINT3DZ *point)
Definition: lwgeom_api.c:215
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:83
int lw_dist3d_pt_ptarray(POINT3DZ *p, POINTARRAY *pa, DISTPTS3D *dl)
search all the segments of pointarray to see which one is closest to p Returns distance between point...
Definition: measures3d.c:959
POINTARRAY * points
Definition: liblwgeom.h:483
POINTARRAY * point
Definition: liblwgeom.h:471

References getPoint3dz_p(), lw_dist3d_pt_ptarray(), LWDEBUG, LWPOINT::point, and LWLINE::points.

Referenced by lw_dist3d_distribute_bruteforce().

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