PostGIS
3.4.0dev-r@@SVN_REVISION@@
|
int gserialized_get_gbox_p | ( | const GSERIALIZED * | g, |
GBOX * | gbox | ||
) |
Read the box from the GSERIALIZED or calculate it if necessary.
Pull a GBOX from the header of a GSERIALIZED, if one is available.
Return #LWFAILURE if box cannot be calculated (NULL or EMPTY input).
If it is not, calculate it from the geometry. If that doesn't work (null or empty) return LW_FAILURE.
Definition at line 65 of file gserialized.c.
References GSERIALIZED::gflags, GFLAGS_GET_VERSION, gserialized1_get_gbox_p(), and gserialized2_get_gbox_p().
Referenced by CircTreePIP(), contains(), containsproperly(), convexhull(), coveredby(), covers(), crosses(), disjoint(), geography_bestsrid(), gserialized_cmp(), gserialized_datum_get_box2df_p(), gserialized_datum_get_internals_p(), gserialized_distance_nd(), gserialized_expand(), gserialized_get_sortable_hash(), optimistic_overlap(), overlaps(), ST_Equals(), ST_Intersects(), ST_LargestEmptyCircle(), ST_MaximumInscribedCircle(), ST_ShapeGrid(), ST_Voronoi(), and touches().