[postgis-tickets] r17534 - Respect geodetics when expanding a gbox
Paul Ramsey
pramsey at cleverelephant.ca
Fri Jun 14 10:47:07 PDT 2019
Author: pramsey
Date: 2019-06-14 10:47:07 -0700 (Fri, 14 Jun 2019)
New Revision: 17534
Modified:
trunk/liblwgeom/gbox.c
Log:
Respect geodetics when expanding a gbox
Modified: trunk/liblwgeom/gbox.c
===================================================================
--- trunk/liblwgeom/gbox.c 2019-06-14 16:49:54 UTC (rev 17533)
+++ trunk/liblwgeom/gbox.c 2019-06-14 17:47:07 UTC (rev 17534)
@@ -99,12 +99,12 @@
g->xmax += d;
g->ymin -= d;
g->ymax += d;
- if ( FLAGS_GET_Z(g->flags) )
+ if (FLAGS_GET_Z(g->flags) || FLAGS_GET_GEODETIC(g->flags))
{
g->zmin -= d;
g->zmax += d;
}
- if ( FLAGS_GET_M(g->flags) )
+ if (FLAGS_GET_M(g->flags))
{
g->mmin -= d;
g->mmax += d;
More information about the postgis-tickets
mailing list