[postgis-tickets] [PostGIS] #3997: Division by zero in iterate_4d
PostGIS
trac at osgeo.org
Fri Jan 19 09:00:57 PST 2018
#3997: Division by zero in iterate_4d
------------------------+---------------------------
Reporter: Algunenano | Owner: strk
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.5.0
Component: liblwgeom | Version: trunk
Keywords: |
------------------------+---------------------------
There is a typo calculating distances in the z-axis.
It appeared as an error as a division by zero
{{{
lwgeom_median.c:111:17: runtime error: division by zero
}}}
in the test
{{{
do_median_test("MULTIPOINT ZM ((0 -1 0 1), (0 0 0 1), (0 1 0 0.5), (0 1 0
0.5))", "POINT (0 0 0)", LW_TRUE, 1000);
}}}
Github PR: https://github.com/postgis/postgis/pull/196
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3997>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list