[postgis-tickets] r16613 - Fix flags in case where a boxless geom comes in with a "has box" set of flags.

Paul Ramsey pramsey at cleverelephant.ca
Tue Jun 12 05:45:45 PDT 2018


Author: pramsey
Date: 2018-06-12 05:45:45 -0700 (Tue, 12 Jun 2018)
New Revision: 16613

Modified:
   branches/2.4/liblwgeom/g_serialized.c
Log:
Fix flags in case where a boxless geom comes in with a "has box" set of flags.
References #4077


Modified: branches/2.4/liblwgeom/g_serialized.c
===================================================================
--- branches/2.4/liblwgeom/g_serialized.c	2018-06-12 01:38:11 UTC (rev 16612)
+++ branches/2.4/liblwgeom/g_serialized.c	2018-06-12 12:45:45 UTC (rev 16613)
@@ -1195,6 +1195,8 @@
 	*/
 	if ( geom->bbox )
 		FLAGS_SET_BBOX(geom->flags, 1);
+	else
+		FLAGS_SET_BBOX(geom->flags, 0);
 
 	/* Set up the uint8_t buffer into which we are going to write the serialized geometry. */
 	expected_size = gserialized_from_lwgeom_size(geom);



More information about the postgis-tickets mailing list