PostGIS  2.5.0dev-r@@SVN_REVISION@@
GBOX* box3d_to_gbox ( const BOX3D b3d)

Definition at line 87 of file g_box.c.

References lwalloc(), BOX3D::xmax, GBOX::xmax, BOX3D::xmin, GBOX::xmin, BOX3D::ymax, GBOX::ymax, BOX3D::ymin, GBOX::ymin, BOX3D::zmax, GBOX::zmax, BOX3D::zmin, and GBOX::zmin.

Referenced by BOX3D_to_BOX2D().

88 {
89  GBOX *b;
90  assert(b3d);
91 
92  b = lwalloc(sizeof(GBOX));
93 
94  b->xmin = b3d->xmin;
95  b->xmax = b3d->xmax;
96  b->ymin = b3d->ymin;
97  b->ymax = b3d->ymax;
98  b->zmin = b3d->zmin;
99  b->zmax = b3d->zmax;
100 
101  return b;
102 }
double xmax
Definition: liblwgeom.h:292
double ymin
Definition: liblwgeom.h:276
double zmax
Definition: liblwgeom.h:296
double ymin
Definition: liblwgeom.h:293
double xmin
Definition: liblwgeom.h:291
double xmin
Definition: liblwgeom.h:276
double ymax
Definition: liblwgeom.h:294
double xmax
Definition: liblwgeom.h:277
double zmin
Definition: liblwgeom.h:295
void * lwalloc(size_t size)
Definition: lwutil.c:229
double ymax
Definition: liblwgeom.h:277
double zmax
Definition: liblwgeom.h:277
double zmin
Definition: liblwgeom.h:276

Here is the call graph for this function:

Here is the caller graph for this function: