[postgis-tickets] r17505 - Cast to lwgeom for dimensionality test
Paul Ramsey
pramsey at cleverelephant.ca
Tue Jun 11 02:41:03 PDT 2019
Author: pramsey
Date: 2019-06-11 14:41:03 -0700 (Tue, 11 Jun 2019)
New Revision: 17505
Modified:
trunk/postgis/lwgeom_functions_analytic.c
Log:
Cast to lwgeom for dimensionality test
Modified: trunk/postgis/lwgeom_functions_analytic.c
===================================================================
--- trunk/postgis/lwgeom_functions_analytic.c 2019-06-11 21:26:14 UTC (rev 17504)
+++ trunk/postgis/lwgeom_functions_analytic.c 2019-06-11 21:41:03 UTC (rev 17505)
@@ -433,9 +433,9 @@
getPoint4d_p(in_lwpoint->point, 0, &offsetpoint);
grid.ipx = offsetpoint.x;
grid.ipy = offsetpoint.y;
- if (lwgeom_has_z(in_lwpoint) ) grid.ipz = offsetpoint.z;
+ if (lwgeom_has_z((LWGEOM*)in_lwpoint)) grid.ipz = offsetpoint.z;
else grid.ipz=0;
- if (lwgeom_has_m(in_lwpoint) ) grid.ipm = offsetpoint.m;
+ if (lwgeom_has_m((LWGEOM*)in_lwpoint)) grid.ipm = offsetpoint.m;
else grid.ipm=0;
#if POSTGIS_DEBUG_LEVEL >= 4
More information about the postgis-tickets
mailing list