That is, even when computing the box from scratch.
This makes the box always float-oriented,
consistently between cached and computed boxes.
Closes (hopefully forever) bug #1023.
Includes testcase otherwise failing.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8203
b70326c6-7e19-0410-871a-
916f4a2858ee
/* See http://trac.osgeo.org/postgis/ticket/1023 */
lwgeom = lwgeom_from_gserialized(geom);
ret = lwgeom_calculate_gbox(lwgeom, box);
+ gbox_float_round(box);
lwgeom_free(lwgeom);
}
return ret;
WITH p AS ( SELECT 'POINT(832694.188 816254.625)'::geometry as g )
SELECT '#1273', st_equals(p.g, postgis_addbbox(p.g)) from p;
+-- Another for #1273 --
+WITH p AS ( SELECT 'MULTIPOINT((832694.188 816254.625))'::geometry as g )
+SELECT '#1273.1', st_equals(p.g, postgis_dropbbox(p.g)) from p;
+
-- Clean up
DELETE FROM spatial_ref_sys;
#1023.b|t
#1060|FFFFFFFF2
#1273|t
+#1273.1|t