PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ gbox_serialized_size()

size_t gbox_serialized_size ( lwflags_t  flags)

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

Definition at line 440 of file gbox.c.

441{
442 if (FLAGS_GET_GEODETIC(flags))
443 return 6 * sizeof(float);
444 else
445 return 2 * FLAGS_NDIMS(flags) * sizeof(float);
446}
#define FLAGS_NDIMS(flags)
Definition liblwgeom.h:193
#define FLAGS_GET_GEODETIC(flags)
Definition liblwgeom.h:182

References FLAGS_GET_GEODETIC, and FLAGS_NDIMS.

Referenced by gserialized1_from_lwgeom_size(), gserialized2_from_lwgeom_size(), lwgeom_from_gserialized1(), lwgeom_from_gserialized2(), and test_gbox_serialized_size().

Here is the caller graph for this function: