PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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 664 of file lwgeom.c.

665{
666 if ( lwgeom->bbox ) lwfree(lwgeom->bbox);
667 lwgeom->bbox = NULL;
668 FLAGS_SET_BBOX(lwgeom->flags, 0);
669}
#define FLAGS_SET_BBOX(flags, value)
Definition liblwgeom.h:188
void lwfree(void *mem)
Definition lwutil.c:242
GBOX * bbox
Definition liblwgeom.h:444
lwflags_t flags
Definition liblwgeom.h:447

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

Referenced by geography_from_geometry(), geography_segmentize(), LWGEOM_collect(), LWGEOM_collect_garray(), LWGEOM_longitude_shift(), lwgeom_refresh_bbox(), lwgeom_remove_repeated_points_in_place(), lwgeom_simplify_in_place(), test_gserialized1_peek_gbox_p_fails_for_unsupported_cases(), and test_gserialized2_peek_gbox_p_fails_for_unsupported_cases().

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