PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ LWGEOM_dropBBOX()

Datum LWGEOM_dropBBOX ( PG_FUNCTION_ARGS  )

Definition at line 702 of file lwgeom_inout.c.

References gserialized_has_bbox().

Referenced by LWGEOM_addBBOX().

703 {
704  GSERIALIZED *geom = PG_GETARG_GSERIALIZED_P(0);
705 
706  /* No box? we're done already! */
707  if ( ! gserialized_has_bbox(geom) )
708  PG_RETURN_POINTER(geom);
709 
710  PG_RETURN_POINTER(gserialized_drop_gidx(geom));
711 }
int gserialized_has_bbox(const GSERIALIZED *gser)
Check if a GSERIALIZED has a bounding box without deserializing first.
Definition: g_serialized.c:40
Here is the call graph for this function:
Here is the caller graph for this function: