[postgis-tickets] r14359 - #3356, ensure that geographies coming in from text do have boxes calculated

Paul Ramsey pramsey at cleverelephant.ca
Fri Nov 6 06:33:59 PST 2015


Author: pramsey
Date: 2015-11-06 06:33:59 -0800 (Fri, 06 Nov 2015)
New Revision: 14359

Modified:
   trunk/liblwgeom/lwgeom.c
Log:
#3356, ensure that geographies coming in from text do have boxes calculated


Modified: trunk/liblwgeom/lwgeom.c
===================================================================
--- trunk/liblwgeom/lwgeom.c	2015-11-06 11:11:12 UTC (rev 14358)
+++ trunk/liblwgeom/lwgeom.c	2015-11-06 14:33:59 UTC (rev 14359)
@@ -1103,6 +1103,10 @@
 int lwgeom_needs_bbox(const LWGEOM *geom)
 {
 	assert(geom);
+
+	if ( FLAGS_GET_GEODETIC(geom->flags) )
+		return LW_TRUE;
+	
 	if ( geom->type == POINTTYPE )
 	{
 		return LW_FALSE;



More information about the postgis-tickets mailing list