PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ gbox_copy()

GBOX* gbox_copy ( const GBOX box)

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

Definition at line 403 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(), LWGEOM_to_BOX2DF(), 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().

404 {
405  GBOX *copy = (GBOX*)lwalloc(sizeof(GBOX));
406  memcpy(copy, box, sizeof(GBOX));
407  return copy;
408 }
void * lwalloc(size_t size)
Definition: lwutil.c:199
Here is the call graph for this function:
Here is the caller graph for this function: