PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lw_dist2d_poly_curvepoly()

int lw_dist2d_poly_curvepoly ( LWPOLY poly1,
LWCURVEPOLY curvepoly2,
DISTPTS dl 
)

Definition at line 1037 of file measures.c.

1038 {
1039  LWCURVEPOLY *curvepoly1 = lwcurvepoly_construct_from_lwpoly(poly1);
1040  int rv = lw_dist2d_curvepoly_curvepoly(curvepoly1, curvepoly2, dl);
1041  lwgeom_free((LWGEOM *)curvepoly1);
1042  return rv;
1043 }
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1138
LWCURVEPOLY * lwcurvepoly_construct_from_lwpoly(LWPOLY *lwpoly)
Construct an equivalent curve polygon from a polygon.
Definition: lwcurvepoly.c:52
int lw_dist2d_curvepoly_curvepoly(LWCURVEPOLY *poly1, LWCURVEPOLY *poly2, DISTPTS *dl)
Definition: measures.c:1067

References lw_dist2d_curvepoly_curvepoly(), lwcurvepoly_construct_from_lwpoly(), and lwgeom_free().

Referenced by lw_dist2d_distribute_bruteforce().

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