[postgis-tickets] r16614 - 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:56:10 PDT 2018


Author: pramsey
Date: 2018-06-12 05:56:10 -0700 (Tue, 12 Jun 2018)
New Revision: 16614

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


Modified: branches/2.3/liblwgeom/g_serialized.c
===================================================================
--- branches/2.3/liblwgeom/g_serialized.c	2018-06-12 12:45:45 UTC (rev 16613)
+++ branches/2.3/liblwgeom/g_serialized.c	2018-06-12 12:56:10 UTC (rev 16614)
@@ -952,6 +952,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