Changeset 3872 in josm
- Timestamp:
- 2011-02-08T19:52:58+01:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/OffsetBookmark.java
r3779 r3872 14 14 import org.openstreetmap.josm.data.coor.LatLon; 15 15 import org.openstreetmap.josm.data.projection.Projection; 16 import org.openstreetmap.josm.data.projection.Projections; 16 17 import org.openstreetmap.josm.data.projection.ProjectionInfo; 17 18 import org.openstreetmap.josm.gui.layer.ImageryLayer; … … 51 52 proj = ProjectionInfo.getProjectionByCode(projectionStr); 52 53 if (proj == null) { 53 for (Projection proj : Projection .allProjections) {54 for (Projection proj : Projections.getProjections()) { 54 55 if (proj.getCacheDirectoryName().equals(projectionStr)) { 55 56 this.proj = proj; -
trunk/src/org/openstreetmap/josm/data/projection/Projection.java
r3689 r3872 13 13 */ 14 14 public interface Projection { 15 /**16 * List of all available projections.17 */18 public static Projection[] allProjections = new Projection[]{19 // global projections20 new Epsg4326(),21 new Mercator(),22 new UTM(),23 // regional - alphabetical order by country name24 new LambertEST(), // Still needs proper default zoom25 new Lambert(), // Still needs proper default zoom26 new LambertCC9Zones(), // Still needs proper default zoom27 new UTM_France_DOM(),28 new TransverseMercatorLV(),29 new Puwg(),30 new Epsg3008(), // SWEREF99 13 3031 new SwissGrid(),32 };33 34 15 /** 35 16 * Returns the default zoom scale in pixel per degree ({@see #NavigatableComponent#scale})) -
trunk/src/org/openstreetmap/josm/data/projection/ProjectionInfo.java
r3821 r3872 21 21 static { 22 22 allCodes = new HashMap<String, Projection>(); 23 for (Projection proj : Projection .allProjections) {23 for (Projection proj : Projections.getProjections()) { 24 24 if (proj instanceof ProjectionSubPrefs) { 25 25 ProjectionSubPrefs projSub = recreateProj((ProjectionSubPrefs)proj); -
trunk/src/org/openstreetmap/josm/gui/preferences/AddWMSLayerPanel.java
r3720 r3872 47 47 import org.openstreetmap.josm.data.Bounds; 48 48 import org.openstreetmap.josm.data.projection.Projection; 49 import org.openstreetmap.josm.data.projection.Projections; 49 50 import org.openstreetmap.josm.data.projection.ProjectionSubPrefs; 50 51 import org.openstreetmap.josm.gui.bbox.SlippyMapBBoxChooser; … … 400 401 401 402 private boolean isProjSupported(String crs) { 402 for (Projection proj : Projection .allProjections) {403 for (Projection proj : Projections.getProjections()) { 403 404 if (proj instanceof ProjectionSubPrefs) { 404 405 if (((ProjectionSubPrefs) proj).getPreferencesFromCode(crs) == null) { -
trunk/src/org/openstreetmap/josm/gui/preferences/ProjectionPreference.java
r3779 r3872 27 27 import org.openstreetmap.josm.data.projection.Mercator; 28 28 import org.openstreetmap.josm.data.projection.Projection; 29 import org.openstreetmap.josm.data.projection.Projections; 29 30 import org.openstreetmap.josm.data.projection.ProjectionSubPrefs; 30 31 import org.openstreetmap.josm.gui.NavigatableComponent; … … 84 85 * Combobox with all projections available 85 86 */ 86 private JComboBox projectionCombo = new JComboBox(Projection .allProjections);87 private JComboBox projectionCombo = new JComboBox(Projections.getProjections().toArray()); 87 88 88 89 /**
Note:
See TracChangeset
for help on using the changeset viewer.