Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2043 closed defect (fixed)

test_spheroid_area fails

Reported by: strk Owned by: pramsey
Priority: medium Milestone: PostGIS 2.1.0
Component: postgis Version: master
Keywords: Cc:

Description

This is on a 64bit linux system:

  Test: test_spheroid_area ...
sphere: 12360265021.4
spheroid: 12304814950.1
FAILED
    1. cu_geodetic.c:993  - CU_ASSERT_DOUBLE_EQUAL(a1,89.7127703297,0.0001)

Change History (4)

comment:1 by robe, 12 years ago

Debbie and Winnie are similarly unhappy.

Debbie: 64-bit Debian 6

sphere: 12360265021.4
spheroid: 12304814950.1
FAILED
    1. cu_geodetic.c:993  - CU_ASSERT_DOUBLE_EQUAL(a1,89.7127703297,0.0001)

Winnie - Mingw64 32-bit compile

 Test: test_lwgeom_area_sphere ...FAILED
    1. cu_geodetic.c:1173  - CU_ASSERT_DOUBLE_EQUAL(area,12360265021.3561,0.01)
  Test: test_signum ...passed
  Test: test_gbox_from_spherical_coordinates ...passed
  Test: test_gserialized_get_gbox_geocentric ...passed
  Test: test_clairaut ...passed
  Test: test_edge_intersection ...passed
  Test: test_edge_distance_to_point ...passed
  Test: test_edge_distance_to_edge ...passed
  Test: test_lwgeom_distance_sphere ...passed
  Test: test_lwgeom_check_geodetic ...passed
  Test: test_gserialized_from_lwgeom ...passed
  Test: test_spheroid_distance ...passed
  Test: test_spheroid_area ...
sphere: 12360265021.4
spheroid: 12304814950.1
FAILED
    1. cu_geodetic.c:993  - CU_ASSERT_DOUBLE_EQUAL(a1,89.7127703297,0.0001)

Winnie - 64-bit mingw64 compile

sphere: 12360265021.4
spheroid: 12304814950.1
FAILED
    1. cu_geodetic.c:993  - CU_ASSERT_DOUBLE_EQUAL(a1,89.7127703297,0.0001)

comment:2 by pramsey, 12 years ago

It's better on debbie at r10420. Probably still a failure on winnie? It's a hard call, the new area approach is less numerically stable, so we're getting a wider range of results off of different platforms. On the other hand, it deals naturally with over-the-poles and near-the-dateline in a way the old approach did not. Hm.

comment:3 by pramsey, 12 years ago

Resolution: fixed
Status: newclosed

comment:4 by robe, 12 years ago

winnie is fine too as far as this is concerned even the win 32 CUnit seems okay.

Note: See TracTickets for help on using tickets.