59 for ( i = 0; i < pa->
npoints; i++ )
81 for ( i = 0; i < mpt->
ngeoms; i++ )
101 for (i=0; i<mpoint->
ngeoms; ++i)
106 for (j=0; j<nnewgeoms; ++j)
108 lwpt2 = (
LWGEOM*)newgeoms[j];
115 if ( seen )
continue;
122 nnewgeoms, newgeoms);
GBOX * gbox_copy(const GBOX *box)
Return a copy of the GBOX, based on dimensionality of flags.
void lwmpoint_free(LWMPOINT *mpt)
int lwpointiterator_next(LWPOINTITERATOR *s, POINT4D *p)
Attempts to assign the next point in the iterator to p, and advances the iterator to the next point...
LWCOLLECTION * lwcollection_construct(uint8_t type, int srid, GBOX *bbox, uint32_t ngeoms, LWGEOM **geoms)
void lwpoint_free(LWPOINT *pt)
#define LWDEBUG(level, msg)
LWGEOM * lwgeom_clone_deep(const LWGEOM *lwgeom)
Deep clone an LWGEOM, everything is copied.
int lwgeom_has_z(const LWGEOM *geom)
Return LW_TRUE if geometry has Z ordinates.
LWPOINTITERATOR * lwpointiterator_create(const LWGEOM *g)
Create a new LWPOINTITERATOR over supplied LWGEOM*.
LWGEOM * lwmpoint_remove_repeated_points(const LWMPOINT *mpoint, double tolerance)
LWMPOINT * lwmpoint_construct_empty(int srid, char hasz, char hasm)
void lwpointiterator_destroy(LWPOINTITERATOR *s)
Free all memory associated with the iterator.
LWPOINT * lwpoint_make(int srid, int hasz, int hasm, const POINT4D *p)
LWMPOINT * lwmpoint_construct(int srid, const POINTARRAY *pa)
int ptarray_has_m(const POINTARRAY *pa)
void lwmpoint_release(LWMPOINT *lwmpoint)
LWMPOINT * lwmpoint_add_lwpoint(LWMPOINT *mobj, const LWPOINT *obj)
double lwgeom_mindistance2d(const LWGEOM *lw1, const LWGEOM *lw2)
Function initialazing min distance calculation.
void lwgeom_release(LWGEOM *lwgeom)
Free the containing LWGEOM and the associated BOX.
int ptarray_has_z(const POINTARRAY *pa)
void * lwalloc(size_t size)
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int srid, char hasz, char hasm)
int lwgeom_has_m(const LWGEOM *geom)
Return LW_TRUE if geometry has M ordinates.
LWCOLLECTION * lwcollection_add_lwgeom(LWCOLLECTION *col, const LWGEOM *geom)
Appends geom to the collection managed by col.
int getPoint4d_p(const POINTARRAY *pa, int n, POINT4D *point)
LWGEOM * lwmpoint_as_lwgeom(const LWMPOINT *obj)
LWMPOINT * lwmpoint_from_lwgeom(const LWGEOM *g)