Changeset 15038 in josm for trunk/test
- Timestamp:
- 2019-05-02T18:30:31+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDistanceTest.java
r14802 r15038 34 34 Node node2 = new Node(); 35 35 Way way = new Way(); 36 node1.setCoor(new LatLon(0 , 0));37 node2.setCoor(new LatLon( 0, 1));36 node1.setCoor(new LatLon(0.5, 0)); 37 node2.setCoor(new LatLon(-0.5, 0)); 38 38 way.addNode(node1); 39 39 way.addNode(node2); 40 40 41 WayPoint waypoint = new WayPoint(new LatLon( 1, 0));41 WayPoint waypoint = new WayPoint(new LatLon(0, 1)); 42 42 43 43 double distance = GpxDistance.getDistanceWay(null, waypoint); … … 104 104 en = new EastNorth(0, 1); 105 105 distance = GpxDistance.getDistanceEastNorth(en, waypoint); 106 /* 111319.49077 uses the WGS84/NAD38/GRS80 model for 107 * the distance between (0, 0) and (0, 1) */ 108 assertEquals(111319.49077, distance, 0.1); 106 assertEquals(1, distance, 0.000001); 109 107 } 110 108
Note:
See TracChangeset
for help on using the changeset viewer.