[postgis-tickets] r16341 - Fix bug in iterate_4d.
Darafei
komzpa at gmail.com
Fri Jan 19 09:50:51 PST 2018
Author: komzpa
Date: 2018-01-19 09:50:51 -0800 (Fri, 19 Jan 2018)
New Revision: 16341
Modified:
trunk/liblwgeom/lwgeom_median.c
Log:
Fix bug in iterate_4d.
Patch by Raúl Marín Rodríguez.
Closes #3997
Closes https://github.com/postgis/postgis/pull/196
Modified: trunk/liblwgeom/lwgeom_median.c
===================================================================
--- trunk/liblwgeom/lwgeom_median.c 2018-01-19 16:33:47 UTC (rev 16340)
+++ trunk/liblwgeom/lwgeom_median.c 2018-01-19 17:50:51 UTC (rev 16341)
@@ -101,7 +101,7 @@
{
dx += (points[i].x - curr->x) / distances[i];
dy += (points[i].y - curr->y) / distances[i];
- dz += (points[i].y - curr->z) / distances[i];
+ dz += (points[i].z - curr->z) / distances[i];
}
}
More information about the postgis-tickets
mailing list