PostGIS  2.1.10dev-r@@SVN_REVISION@@
Datum LWGEOM_dropBBOX ( PG_FUNCTION_ARGS  )

Definition at line 424 of file lwgeom_inout.c.

References gserialized_has_bbox().

425 {
426  GSERIALIZED *geom = (GSERIALIZED *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
427 
428  /* No box? we're done already! */
429  if ( ! gserialized_has_bbox(geom) )
430  PG_RETURN_POINTER(geom);
431 
432  PG_RETURN_POINTER(gserialized_drop_gidx(geom));
433 }
int gserialized_has_bbox(const GSERIALIZED *gser)
Check if a GSERIALIZED has a bounding box without deserializing first.
Definition: g_serialized.c:20
LWGEOM * geom

Here is the call graph for this function: