Definition at line 230 of file lwpoly.c.
References LWPOLY::bbox, LWPOLY::flags, FLAGS_SET_READONLY, gbox_copy(), lwalloc(), LWPOLY::nrings, ptarray_clone_deep(), and LWPOLY::rings.
Referenced by lwgeom_clone_deep().
234 memcpy(ret, g,
sizeof(
LWPOLY));
237 for ( i = 0; i < ret->
nrings; i++ )
GBOX * gbox_copy(const GBOX *box)
Return a copy of the GBOX, based on dimensionality of flags.
POINTARRAY * ptarray_clone_deep(const POINTARRAY *ptarray)
Deep clone a pointarray (also clones serialized pointlist)
void * lwalloc(size_t size)
#define FLAGS_SET_READONLY(flags, value)