PostGIS  2.1.10dev-r@@SVN_REVISION@@
int lw_dist2d_point_circstring ( LWPOINT point,
LWCIRCSTRING circ,
DISTPTS dl 
)

Definition at line 558 of file measures.c.

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

Referenced by lw_dist2d_distribute_bruteforce().

559 {
560  const POINT2D *p;
561  p = getPoint2d_cp(point->point, 0);
562  return lw_dist2d_pt_ptarrayarc(p, circ->points, dl);
563 }
POINTARRAY * point
Definition: liblwgeom.h:367
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:458
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:1039
POINTARRAY * points
Definition: liblwgeom.h:400

Here is the call graph for this function:

Here is the caller graph for this function: