PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ gbox_serialized_size()

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 446 of file g_box.c.

447 {
448  if ( FLAGS_GET_GEODETIC(flags) )
449  return 6 * sizeof(float);
450  else
451  return 2 * FLAGS_NDIMS(flags) * sizeof(float);
452 }
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:152
#define FLAGS_GET_GEODETIC(flags)
Definition: liblwgeom.h:143

References FLAGS_GET_GEODETIC, and FLAGS_NDIMS.

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

Here is the caller graph for this function: