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

◆ gserialized_get_gbox_p()

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.

66{
68 return gserialized2_get_gbox_p(g, gbox);
69 else
70 return gserialized1_get_gbox_p(g, gbox);
71}
int gserialized1_get_gbox_p(const GSERIALIZED *g, GBOX *box)
Read the bounding box off a serialization and calculate one if it is not already there.
int gserialized2_get_gbox_p(const GSERIALIZED *g, GBOX *box)
Read the bounding box off a serialization and calculate one if it is not already there.
#define GFLAGS_GET_VERSION(gflags)
Definition gserialized.c:12
uint8_t gflags
Definition liblwgeom.h:432

References GSERIALIZED::gflags, GFLAGS_GET_VERSION, gserialized1_get_gbox_p(), and gserialized2_get_gbox_p().

Referenced by BOX2D_combine(), CircTreePIP(), compute_gserialized_stats_mode(), contains(), containsproperly(), convexhull(), coveredby(), covers(), crosses(), disjoint(), geography_bestsrid(), geography_point_outside(), gserialized_cmp(), gserialized_datum_get_box2df_p(), gserialized_distance_nd(), gserialized_expand(), gserialized_get_sortable_hash(), LWGEOM_to_BOX2DF(), optimistic_overlap(), overlaps(), ST_Equals(), ST_Intersects(), ST_Voronoi(), and touches().

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