PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lw_dist2d_point_circstring()

int lw_dist2d_point_circstring ( LWPOINT point,
LWCIRCSTRING circ,
DISTPTS dl 
)

Definition at line 598 of file measures.c.

References getPoint2d_cp(), lw_dist2d_pt_ptarrayarc(), LWPOINT::point, and LWCIRCSTRING::points.

Referenced by lw_dist2d_distribute_bruteforce().

599 {
600  const POINT2D *p;
601  p = getPoint2d_cp(point->point, 0);
602  return lw_dist2d_pt_ptarrayarc(p, circ->points, dl);
603 }
POINTARRAY * point
Definition: liblwgeom.h:411
const POINT2D * getPoint2d_cp(const POINTARRAY *pa, int n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from...
Definition: lwgeom_api.c:373
int lw_dist2d_pt_ptarrayarc(const POINT2D *p, const POINTARRAY *pa, DISTPTS *dl)
Search all the arcs of pointarray to see which one is closest to p1 Returns minimum distance between ...
Definition: measures.c:1079
POINTARRAY * points
Definition: liblwgeom.h:444
Here is the call graph for this function:
Here is the caller graph for this function: