/* * Find bounding box (standard one) * zmin=zmax=NO_Z_VALUE if 2d */ BOX3D * lwline_compute_box3d(LWLINE *line) { BOX3D *ret; if (line == NULL) return NULL; ret = ptarray_compute_box3d(line->points); return ret; }
/* * Find bounding box (standard one) * zmin=zmax=NO_Z_VALUE if 2d */ BOX3D * lwpoint_compute_box3d(LWPOINT *point) { LWDEBUGF(2, "lwpoint_compute_box3d called with point %p", point); if (point == NULL) { LWDEBUG(3, "lwpoint_compute_box3d returning NULL"); return NULL; } LWDEBUG(3, "lwpoint_compute_box3d returning ptarray_compute_box3d return"); return ptarray_compute_box3d(point->point); }