PostGIS
3.0.6dev-r@@SVN_REVISION@@
|
GSERIALIZED* gserialized1_set_gbox | ( | GSERIALIZED * | g, |
GBOX * | gbox | ||
) |
Copy a new bounding box into an existing gserialized.
If necessary a new GSERIALIZED will be allocated. Test that input != output before freeing input.
Copy a new bounding box into an existing gserialized.
WARNING if a new object needs to be created, the input pointer will have to be freed by the caller! Check to see if input == output. Returns null if there's a problem like mismatched dimensions.
Definition at line 1508 of file gserialized1.c.
References GSERIALIZED::data, GBOX::flags, FLAGS_NDIMS_BOX, G1FLAGS_GET_BBOX, G1FLAGS_NDIMS_BOX, G1FLAGS_SET_BBOX, gbox_float_round(), GSERIALIZED::gflags, gserialized1_has_m(), gserialized1_has_z(), gserialized1_is_geodetic(), lwalloc(), GBOX::mmax, GBOX::mmin, GSERIALIZED::size, SIZE_GET, SIZE_SET, GBOX::xmax, GBOX::xmin, GBOX::ymax, GBOX::ymin, GBOX::zmax, and GBOX::zmin.
Referenced by gserialized_set_gbox().