59 for ( i = 0; i < pa->
npoints; i++ )
81 for ( i = 0; i < mpt->
ngeoms; i++ )
LWPOINTITERATOR * lwpointiterator_create(const LWGEOM *g)
Create a new LWPOINTITERATOR over supplied LWGEOM*.
void lwpoint_free(LWPOINT *pt)
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int srid, char hasz, char hasm)
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.
LWGEOM * lwmpoint_as_lwgeom(const LWMPOINT *obj)
void lwpointiterator_destroy(LWPOINTITERATOR *s)
Free all memory associated with the iterator.
int lwgeom_has_z(const LWGEOM *geom)
Return LW_TRUE if geometry has Z ordinates.
int getPoint4d_p(const POINTARRAY *pa, uint32_t n, POINT4D *point)
LWCOLLECTION * lwcollection_add_lwgeom(LWCOLLECTION *col, const LWGEOM *geom)
Appends geom to the collection managed by col.
void lwgeom_release(LWGEOM *lwgeom)
Free the containing LWGEOM and the associated BOX.
int lwgeom_has_m(const LWGEOM *geom)
Return LW_TRUE if geometry has M ordinates.
LWPOINT * lwpoint_make(int srid, int hasz, int hasm, const POINT4D *p)
int ptarray_has_z(const POINTARRAY *pa)
int ptarray_has_m(const POINTARRAY *pa)
#define LWDEBUG(level, msg)
void lwmpoint_free(LWMPOINT *mpt)
void lwmpoint_release(LWMPOINT *lwmpoint)
LWMPOINT * lwmpoint_add_lwpoint(LWMPOINT *mobj, const LWPOINT *obj)
LWMPOINT * lwmpoint_from_lwgeom(const LWGEOM *g)
LWMPOINT * lwmpoint_construct_empty(int srid, char hasz, char hasm)
LWMPOINT * lwmpoint_construct(int srid, const POINTARRAY *pa)