PostGIS  2.1.10dev-r@@SVN_REVISION@@
size_t gbox_serialized_size ( uint8_t  flags)

Return the number of bytes necessary to hold a GBOX of this dimension in serialized form.

Definition at line 375 of file g_box.c.

References FLAGS_GET_GEODETIC, and FLAGS_NDIMS.

Referenced by gserialized_from_lwgeom_size(), gserialized_get_type(), gserialized_is_empty(), lwgeom_from_gserialized(), and test_gbox_serialized_size().

376 {
377  if ( FLAGS_GET_GEODETIC(flags) )
378  return 6 * sizeof(float);
379  else
380  return 2 * FLAGS_NDIMS(flags) * sizeof(float);
381 }
#define FLAGS_GET_GEODETIC(flags)
Definition: liblwgeom.h:109
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:118

Here is the caller graph for this function: