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

Paul Ramsey pramsey at cleverelephant.ca
Mon Jun 11 06:38:11 PDT 2018


Author: pramsey
Date: 2018-06-11 18:38:11 -0700 (Mon, 11 Jun 2018)
New Revision: 16612

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


Modified: trunk/liblwgeom/g_serialized.c
===================================================================
--- trunk/liblwgeom/g_serialized.c	2018-06-06 18:01:15 UTC (rev 16611)
+++ trunk/liblwgeom/g_serialized.c	2018-06-12 01:38:11 UTC (rev 16612)
@@ -1193,6 +1193,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