PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lw_dist2d_point_circstring()

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

Definition at line 584 of file measures.c.

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

Referenced by lw_dist2d_distribute_bruteforce().

585 {
586  const POINT2D *p;
587  p = getPoint2d_cp(point->point, 0);
588  return lw_dist2d_pt_ptarrayarc(p, circ->points, dl);
589 }
POINTARRAY * point
Definition: liblwgeom.h:395
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:472
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:1065
POINTARRAY * points
Definition: liblwgeom.h:428
Here is the call graph for this function:
Here is the caller graph for this function: