PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwgeom_get_bbox()

const GBOX* lwgeom_get_bbox ( const LWGEOM lwgeom)

Get a non-empty geometry bounding box, computing and caching it if not already there.

NOTE: empty geometries don't have a bounding box so you'd still get a NULL for them.

Definition at line 734 of file lwgeom.c.

735 {
736  /* add it if not already there */
737  lwgeom_add_bbox((LWGEOM *)lwg);
738  return lwg->bbox;
739 }
void lwgeom_add_bbox(LWGEOM *lwgeom)
Ensure there's a box in the LWGEOM.
Definition: lwgeom.c:686

References LWGEOM::bbox, and lwgeom_add_bbox().

Referenced by _lwt_AddFaceSplit(), _lwt_AddLine(), _lwt_CheckEdgeCrossing(), _lwt_EdgeRingGetBbox(), _lwt_GetEqualEdge(), _lwt_minTolerance(), dbscan_update_context(), geos_envelope_surrogate(), lwgeom_extent_to_gml2(), lwgeom_extent_to_gml3(), lwgeom_split_wrapx(), lwgeom_subdivide_recursive(), lwt_AddPolygon(), lwt_ChangeEdgeGeom(), ST_BoundingDiagonal(), ST_ClipByBox2d(), ST_GeometricMedian(), test_lwgeom_voronoi_diagram_custom_envelope(), and test_lwpoly_construct_circle().

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