Changeset 3872 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2011-02-08T19:52:58+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 1 added
- 3 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);
Note:
See TracChangeset
for help on using the changeset viewer.