]> granicus.if.org Git - postgis/commitdiff
Fix flags in case where a boxless geom comes in with a "has box" set of flags.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 12 Jun 2018 12:56:10 +0000 (12:56 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 12 Jun 2018 12:56:10 +0000 (12:56 +0000)
Closes #4707

git-svn-id: http://svn.osgeo.org/postgis/branches/2.3@16614 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/g_serialized.c

index 4c7677a31cb67727a07cd6f9afa29555c573f152..167ed84d3d0fb94af543016a94f741d5f14081d3 100644 (file)
@@ -952,6 +952,8 @@ GSERIALIZED* gserialized_from_lwgeom(LWGEOM *geom, size_t *size)
        */
        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);