PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ LWGEOM_dropBBOX()

Datum LWGEOM_dropBBOX ( PG_FUNCTION_ARGS  )

Definition at line 634 of file lwgeom_inout.c.

635 {
636  GSERIALIZED *geom = PG_GETARG_GSERIALIZED_P(0);
637 
638  /* No box? we're done already! */
639  if ( ! gserialized_has_bbox(geom) )
640  PG_RETURN_POINTER(geom);
641 
642  PG_RETURN_POINTER(gserialized_drop_gbox(geom));
643 }
int gserialized_has_bbox(const GSERIALIZED *g)
Check if a GSERIALIZED has a bounding box without deserializing first.
Definition: gserialized.c:163
GSERIALIZED * gserialized_drop_gbox(GSERIALIZED *g)
Remove the bounding box from a GSERIALIZED.
Definition: gserialized.c:52

References gserialized_drop_gbox(), and gserialized_has_bbox().

Here is the call graph for this function: