101 for (i=0; i<mpoint->ngeoms; ++i)
103 lwpt1 = (
LWGEOM*)mpoint->geoms[i];
106 for (j=0; j<nnewgeoms; ++j)
108 lwpt2 = (
LWGEOM*)newgeoms[j];
115 if ( seen )
continue;
121 mpoint->bbox ?
gbox_copy(mpoint->bbox) : NULL,
122 nnewgeoms, newgeoms);
GBOX * gbox_copy(const GBOX *box)
Return a copy of the GBOX, based on dimensionality of flags.
LWCOLLECTION * lwcollection_construct(uint8_t type, int srid, GBOX *bbox, uint32_t ngeoms, LWGEOM **geoms)
LWGEOM * lwgeom_clone_deep(const LWGEOM *lwgeom)
Deep clone an LWGEOM, everything is copied.
double lwgeom_mindistance2d(const LWGEOM *lw1, const LWGEOM *lw2)
Function initialazing min distance calculation.
void * lwalloc(size_t size)