Changeset 9790 in josm for trunk/test/unit
- Timestamp:
- 2016-02-12T14:31:47+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java
r9628 r9790 293 293 } 294 294 Projection proj = Projections.getProjectionByCode(ref.code); 295 double scale = ((CustomProjection) proj).get MetersPerUnitProj();295 double scale = ((CustomProjection) proj).getToMeter(); 296 296 for (Pair<LatLon, EastNorth> p : ref.data) { 297 297 LatLon ll = p.a; … … 303 303 en = new EastNorth(en.north(), en.east()); 304 304 } 305 en = new EastNorth(en.east() * scale, en.north() * scale); // convert to meter 305 306 final double EPSILON_EN = 1e-2; // 1cm 306 307 if (!isEqual(enRef, en, EPSILON_EN, true)) {
Note:
See TracChangeset
for help on using the changeset viewer.