PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
void lwgeom_add_bbox | ( | LWGEOM * | lwgeom | ) |
Compute a bbox if not already computed.
After calling this function lwgeom->bbox is only NULL if the geometry is empty.
Compute a bbox if not already computed.
If the box is already there just return, else compute it.
Definition at line 648 of file lwgeom.c.
References LWGEOM::bbox, LWGEOM::flags, FLAGS_SET_BBOX, gbox_new(), lwgeom_calculate_gbox(), and lwgeom_is_empty().
Referenced by do_lwgeom_flip_coordinates(), geom_from_kml(), geometry_from_geography(), GEOS2POSTGIS(), gserialized_from_lwgeom(), lw_dist2d_recursive(), LWGEOM_addBBOX(), LWGEOM_affine(), LWGEOM_expand(), lwgeom_from_encoded_polyline(), lwgeom_from_geojson(), lwgeom_from_gml(), LWGEOM_from_WKB(), LWGEOM_geometryn_collection(), lwgeom_get_bbox(), LWGEOM_in(), LWGEOM_recv(), LWGEOM_SetEffectiveArea(), LWGEOM_simplify2d(), LWGEOM_snaptogrid(), LWGEOM_snaptogrid_pointoff(), lwgeom_swap_ordinates(), LWGEOMFromEWKB(), LWGEOMFromTWKB(), lwline_add_lwpoint(), lwline_clip_to_ordinate_range(), lwline_removepoint(), lwline_setPoint4d(), lwmline_clip_to_ordinate_range(), lwmpoint_clip_to_ordinate_range(), lwpoint_clip_to_ordinate_range(), lwpoly_construct_envelope(), lwt_ChangeEdgeGeom(), SFCGALGeometry2POSTGIS(), ST_RemoveRepeatedPoints(), test_gbox_same_2d(), test_lwgeom_from_gserialized(), test_lwgeom_same(), test_lwgeom_scale(), transform(), and transform_geom().