Opened 6 years ago

Closed 6 years ago

#4012 closed defect (fixed)

trunk is failing on median tests

Reported by: robe Owned by: pramsey
Priority: blocker Milestone: PostGIS 2.5.0
Component: postgis Version: master
Keywords: Cc:

Description

Can someone fix this:

  Test: test_median_handles_3d_correctly ...passed
  Test: test_median_robustness ...median_test input MULTIPOINT ((1 -1 3), (1 0 2), (2 1 1)) (parsed MULTIPOINT(1 -1 3,1 0 2,2 1 1)) expected POINT(1 0 2) got POINT(1 0 2)
median_test input MULTIPOINT ZM ((0 0 20000 0.5),(0 0 59000 0.5),(0 48000 -20000 1.3),(0 -48000 -20000 1.3),(0 -3000 -3472.22222222222262644208967685699462890625 1),(0 3000 3472.22222222222262644208967685699462890625 1),(0 0 -1644.736842105263121993630193173885345458984375 1),(0 0 1644.736842105263121993630193173885345458984375 1)) (parsed MULTIPOINT(0 0 20000 0.5,0 0 59000 0.5,0 48000 -20000 1.3,0 -48000 -20000 1.3,0 -3000 -3472.22222222 1,0 3000 3472.22222222 1,0 0 -1644.73684211 1,0 0 1644.73684211 1)) expected POINT(0 0 0) got POINT(0 0 0)
FAILED

Change History (2)

comment:1 by Raul Marin, 6 years ago

Related to https://trac.osgeo.org/postgis/ticket/3997.

Should be fixed with https://github.com/postgis/postgis/pull/205 Since that fixes also an issue with an infinite loop (which changes a bit the code) feel free to cherry-pick the other to commits until review or let me know and I'll create different PRs.

comment:2 by pramsey, 6 years ago

Resolution: fixed
Status: newclosed

In 16375:

Fix build tests around geometric median (Raúl Marín Rodríguez)
Closes https://github.com/postgis/postgis/pull/205
Closes #4012

Note: See TracTickets for help on using tickets.