PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ gserialized2_get_type()

uint32_t gserialized2_get_type ( const GSERIALIZED g)

Extract the geometry type from the serialized form (it hides in the anonymous data area, so this is a handy function).

Definition at line 185 of file gserialized2.c.

186 {
187  uint8_t *ptr = gserialized2_get_geometry_p(g);
188  return *((uint32_t*)(ptr));
189 }
static uint8_t * gserialized2_get_geometry_p(const GSERIALIZED *g)
Definition: gserialized2.c:106

References gserialized2_get_geometry_p().

Referenced by gserialized2_peek_gbox_p(), gserialized_get_type(), and lwgeom_from_gserialized2().

Here is the call graph for this function:
Here is the caller graph for this function: