Changeset 9133 in josm for trunk/test


Ignore:
Timestamp:
2015-12-15T15:45:37+01:00 (6 years ago)
Author:
bastiK
Message:

see #12186 - add more projections
The list of projections is now generated during the build process:
scripts/BuildEpsgList.java runs and creates data/projection/custom-epsg which is generated by combining data_nodist/projection/josm-epsg (a list maintained by the JOSM team) and data_nodist/projection/epsg (an upstream list from the proj.4 project, git: 3795cdf)
The ant task epsg cares for this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java

    r9130 r9133  
    2828import org.openstreetmap.josm.data.coor.EastNorth;
    2929import org.openstreetmap.josm.data.coor.LatLon;
    30 import org.openstreetmap.josm.gui.preferences.projection.ProjectionChoice;
    31 import org.openstreetmap.josm.gui.preferences.projection.ProjectionPreference;
    3230import org.openstreetmap.josm.tools.Pair;
    3331
     
    111109            }
    112110        }
     111        System.out.println("Update successful.");
    113112    }
    114113
     
    166165        StringBuilder fail = new StringBuilder();
    167166
    168         for (ProjectionChoice pc : ProjectionPreference.getProjectionChoices()) {
    169             for (String code : pc.allCodes()) {
    170                if (!dataCodes.contains(code)) {
    171                     fail.append("Did not find projection "+code+" in test data!\n");
    172                 }
    173             }
     167        for (String code : Projections.getAllProjectionCodes()) {
     168            if (!dataCodes.contains(code)) {
     169                 fail.append("Did not find projection "+code+" in test data!\n");
     170             }
    174171        }
    175172
Note: See TracChangeset for help on using the changeset viewer.