PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ gbox_copy()

GBOX* gbox_copy ( const GBOX gbox)

Return a copy of the GBOX, based on dimensionality of flags.

Definition at line 433 of file g_box.c.

References lwalloc().

Referenced by BOX2D_in(), convexhull(), lwcollection_calculate_gbox_geodetic(), lwcollection_clone(), lwcollection_clone_deep(), lwcollection_extract(), lwcollection_unstroke(), LWGEOM_collect_garray(), LWGEOM_exteriorring_polygon(), lwgeom_from_gserialized(), lwgeom_homogenize(), LWGEOM_segmentize2d(), LWGEOM_to_BOX2D(), LWGEOM_to_BOX2DF(), lwline_clone(), lwline_clone_deep(), lwpoint_clone(), lwpoly_clone(), and lwpoly_clone_deep().

434 {
435  GBOX *copy = (GBOX*)lwalloc(sizeof(GBOX));
436  memcpy(copy, box, sizeof(GBOX));
437  return copy;
438 }
void * lwalloc(size_t size)
Definition: lwutil.c:229
Here is the call graph for this function:
Here is the caller graph for this function: