Modify

Opened 11 years ago

Closed 11 years ago

#8949 closed defect (duplicate)

JUnit projection tests fail

Reported by: Don-vip Owned by: team
Priority: major Milestone:
Component: Core Version:
Keywords: projection junit test Cc: bastiK

Description

We have two unit tests that fail:

org.openstreetmap.josm.data.projection.ProjectionRefTest.test

Swiss Grid (Switzerland) (EPSG:21781): Inverse projecting eastnorth(608453.345582639,264441.147108637):
        expected: latlon(47.5306491920165,7.55087811333162),
        but got:  latlon(47.530649202498516,7.550878120683933)!
Swiss Grid (Switzerland) (EPSG:21781): Inverse projecting eastnorth(521159.089286527,222910.747645586):
        expected: latlon(47.1524544215622,6.399035479565),
        but got:  latlon(47.152454432179425,6.399035485766948)!
Swiss Grid (Switzerland) (EPSG:21781): Inverse projecting eastnorth(674324.501841715,181446.621066249):
        expected: latlon(46.7800480394318,8.41189565368906),
        but got:  latlon(46.78004804941435,8.411895662126815)!

and

org.openstreetmap.josm.data.projection.SwissGridTest.projReferenceTest

Zimmerwald should be: EastNorth[e=602030.68, n=191775.03] but is: EastNorth[e=602030.7507703175, n=191775.05182755782]
Chrischona should be: EastNorth[e=617306.3, n=268507.3] but is: EastNorth[e=617306.9259036719, n=268507.8824276901]
Pfaender should be: EastNorth[e=776668.105, n=265372.681] but is: EastNorth[e=776668.6063101258, n=265372.2765355016]
La Givrine should be: EastNorth[e=497313.292, n=145625.438] but is: EastNorth[e=497312.66164322855, n=145626.16785973747]
Monte Generoso should be: EastNorth[e=722758.81, n=87649.67] but is: EastNorth[e=722759.0832458393, n=87648.22547523722]

I have tried to regenerate a new data file but this does not fix the errors :(

Attachments (1)

projection-reference-data.csv (35.7 KB ) - added by Don-vip 11 years ago.
new data file, but produces another errors

Download all attachments as: .zip

Change History (3)

by Don-vip, 11 years ago

new data file, but produces another errors

comment:1 by bastiK, 11 years ago

This is known (#5399), you can rerun the tests with -DsuppressPermanentFailure=yes if it bothers you.

comment:2 by Don-vip, 11 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #5399.
ok sorry, I though it was a recent regression

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.