[postgis-tickets] r14351 - make sure to drop whatever boxes first
Regina Obe
lr at pcorp.us
Tue Nov 3 02:31:52 PST 2015
Author: robe
Date: 2015-11-03 02:31:51 -0800 (Tue, 03 Nov 2015)
New Revision: 14351
Modified:
trunk/postgis/geography_inout.c
trunk/postgis/geography_measurement.c
Log:
make sure to drop whatever boxes first
references #3356 (fix for 2.3 branch)
references #3355 redo of fix for 2.3 branch for segmentize
Modified: trunk/postgis/geography_inout.c
===================================================================
--- trunk/postgis/geography_inout.c 2015-11-03 07:51:43 UTC (rev 14350)
+++ trunk/postgis/geography_inout.c 2015-11-03 10:31:51 UTC (rev 14351)
@@ -598,7 +598,9 @@
);
}
-
+ /* Recalculate the boxes after re-setting the geodetic bit */
+ lwgeom_drop_bbox(lwgeom);
+
g_ser = gserialized_geography_from_lwgeom(lwgeom, -1);
/*
Modified: trunk/postgis/geography_measurement.c
===================================================================
--- trunk/postgis/geography_measurement.c 2015-11-03 07:51:43 UTC (rev 14350)
+++ trunk/postgis/geography_measurement.c 2015-11-03 10:31:51 UTC (rev 14351)
@@ -1084,6 +1084,9 @@
/* Calculate the densified geometry */
lwgeom2 = lwgeom_segmentize_sphere(lwgeom1, max_seg_length);
+ /* force recalculate of box by dropping */
+ lwgeom_drop_bbox(lwgeom2);
+
g2 = gserialized_geography_from_lwgeom(lwgeom2, -1);
/* Clean up */
More information about the postgis-tickets
mailing list