PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lw_dist2d_point_circstring()

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

Definition at line 628 of file measures.c.

629 {
630  const POINT2D *p;
631  p = getPoint2d_cp(point->point, 0);
632  return lw_dist2d_pt_ptarrayarc(p, circ->points, dl);
633 }
static const POINT2D * getPoint2d_cp(const POINTARRAY *pa, uint32_t n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from.
Definition: lwinline.h:91
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:1159
POINTARRAY * points
Definition: liblwgeom.h:493
POINTARRAY * point
Definition: liblwgeom.h:457

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

Referenced by lw_dist2d_distribute_bruteforce().

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