PostGIS  2.1.10dev-r@@SVN_REVISION@@
GBOX* gbox_copy ( const GBOX gbox)

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

Definition at line 362 of file g_box.c.

References lwalloc().

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

363 {
364  GBOX *copy = (GBOX*)lwalloc(sizeof(GBOX));
365  memcpy(copy, box, sizeof(GBOX));
366  return copy;
367 }
void * lwalloc(size_t size)
Definition: lwutil.c:175

Here is the call graph for this function:

Here is the caller graph for this function: