PostGIS
2.4.9dev-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 587 of file gserialized_gist_2d.c.
References box2df_from_gbox_p(), box2df_to_string(), GSERIALIZED::data, GSERIALIZED::flags, FLAGS_GET_BBOX, gbox_init(), gserialized_get_gbox_p(), LW_FAILURE, and LW_SUCCESS.
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(), and gserialized_gist_distance_2d().