PostGIS  2.4.9dev-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 451 of file g_box.c.

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().

452 {
453  if ( FLAGS_GET_GEODETIC(flags) )
454  return 6 * sizeof(float);
455  else
456  return 2 * FLAGS_NDIMS(flags) * sizeof(float);
457 }
#define FLAGS_GET_GEODETIC(flags)
Definition: liblwgeom.h:143
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:152
Here is the caller graph for this function: