PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gserialized2_ndims()

int gserialized2_ndims ( const GSERIALIZED g)

Return the number of dimensions (2, 3, 4) in a geometry.

Definition at line 166 of file gserialized2.c.

167 {
168  return G2FLAGS_NDIMS(g->gflags);
169 }
#define G2FLAGS_NDIMS(gflags)
Definition: gserialized2.h:36
uint8_t gflags
Definition: liblwgeom.h:432

References G2FLAGS_NDIMS, and GSERIALIZED::gflags.

Referenced by gserialized_ndims().

Here is the caller graph for this function: