PostGIS  2.2.7dev-r@@SVN_REVISION@@

◆ lwgeom_drop_bbox()

void lwgeom_drop_bbox ( LWGEOM lwgeom)

Call this function to drop BBOX and SRID from LWGEOM.

If LWGEOM type is not flagged with the HASBBOX flag and has a bbox, it will be released.

Definition at line 586 of file lwgeom.c.

References LWGEOM::bbox, LWGEOM::flags, FLAGS_SET_BBOX, and lwfree().

Referenced by geography_from_geometry(), geography_segmentize(), geometry_from_geography(), LWGEOM_affine(), LWGEOM_collect(), LWGEOM_collect_garray(), LWGEOM_longitude_shift(), lwgeom_swap_ordinates(), lwline_add_lwpoint(), lwline_clip_to_ordinate_range(), lwline_setPoint4d(), lwmline_clip_to_ordinate_range(), lwmpoint_clip_to_ordinate_range(), lwpoint_clip_to_ordinate_range(), transform(), and transform_geom().

587 {
588  if ( lwgeom->bbox ) lwfree(lwgeom->bbox);
589  lwgeom->bbox = NULL;
590  FLAGS_SET_BBOX(lwgeom->flags, 0);
591 }
GBOX * bbox
Definition: liblwgeom.h:382
void lwfree(void *mem)
Definition: lwutil.c:214
uint8_t flags
Definition: liblwgeom.h:381
#define FLAGS_SET_BBOX(flags, value)
Definition: liblwgeom.h:132
Here is the call graph for this function:
Here is the caller graph for this function: