Here the geometries are distributed for the new faster distance-calculations.
Definition at line 522 of file measures.c.
References LWGEOM::bbox, LINETYPE, lw_dist2d_fast_ptarray_ptarray(), LW_FALSE, LWDEBUGF, lwerror(), lwtype_name(), POLYGONTYPE, DISTPTS::twisted, and LWGEOM::type.
Referenced by lw_dist2d_recursive().
525 int type1 = lwg1->
type;
526 int type2 = lwg2->
type;
528 LWDEBUGF(2,
"lw_dist2d_distribute_fast is called with typ1=%d, type2=%d", lwg1->
type, lwg2->
type);
533 pa1 = ((
LWLINE *)lwg1)->points;
536 pa1 = ((
LWPOLY *)lwg1)->rings[0];
545 pa2 = ((
LWLINE *)lwg2)->points;
548 pa2 = ((
LWPOLY *)lwg2)->rings[0];
int lw_dist2d_fast_ptarray_ptarray(POINTARRAY *l1, POINTARRAY *l2, DISTPTS *dl, GBOX *box1, GBOX *box2)
The new faster calculation comparing pointarray to another pointarray the arrays can come from both p...
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.