PostGIS
3.0.6dev-r@@SVN_REVISION@@
|
int gserialized_datum_get_box2df_p | ( | Datum | gsdatum, |
BOX2DF * | box2df | ||
) |
Peak into a GSERIALIZED datum to find the bounding box.
If the box is there, copy it out and return it. If not, calculate the box from the full object and return the box based on that. If no box is available, return LW_FAILURE, otherwise LW_SUCCESS.
Definition at line 450 of file gserialized_gist_2d.c.
References box2df_from_gbox_p(), box2df_to_string(), gbox_init(), GSERIALIZED::gflags, gserialized_get_float_box_p(), gserialized_get_gbox_p(), gserialized_has_bbox(), LW_SUCCESS, and POSTGIS_FREE_IF_COPY_P.
Referenced by geom2d_brin_inclusion_add_value(), gserialized_datum_predicate_2d(), gserialized_datum_predicate_box2df_geom_2d(), gserialized_distance_box_2d(), gserialized_distance_centroid_2d(), gserialized_gist_compress_2d(), gserialized_gist_consistent_2d(), gserialized_gist_distance_2d(), gserialized_spgist_compress_2d(), gserialized_spgist_inner_consistent_2d(), and gserialized_spgist_leaf_consistent_2d().