Changeset 9107 in josm for trunk/src/org


Ignore:
Timestamp:
2015-12-13T11:28:20+01:00 (4 years ago)
Author:
bastiK
Message:

wms: allow all supported projections (also those only accessible by code)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java

    r8870 r9107  
    2626import org.openstreetmap.josm.data.Bounds;
    2727import org.openstreetmap.josm.data.imagery.ImageryInfo;
     28import org.openstreetmap.josm.data.projection.Projections;
    2829import org.openstreetmap.josm.gui.preferences.projection.ProjectionChoice;
    2930import org.openstreetmap.josm.gui.preferences.projection.ProjectionPreference;
     
    304305
    305306    private static boolean isProjSupported(String crs) {
    306         for (ProjectionChoice pc : ProjectionPreference.getProjectionChoices()) {
    307             if (pc.getPreferencesFromCode(crs) != null) return true;
    308         }
    309         return false;
     307        return Projections.getProjectionByCode(crs) != null;
    310308    }
    311309
Note: See TracChangeset for help on using the changeset viewer.