Changeset 4126 in josm for trunk/src/org/openstreetmap/josm/data/projection
- Timestamp:
- 2011-06-07T19:05:14+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/projection
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/Projections.java
r3874 r4126 2 2 package org.openstreetmap.josm.data.projection; 3 3 4 import java.util.ArrayList; 4 5 import java.util.Arrays; 5 import java.util.ArrayList; 6 7 import org.openstreetmap.josm.Main; 8 import org.openstreetmap.josm.data.coor.EastNorth; 9 import org.openstreetmap.josm.data.coor.LatLon; 6 10 7 11 /** … … 14 18 */ 15 19 private static ArrayList<Projection> allProjections = 16 new ArrayList<Projection>(Arrays.asList(new Projection[] {17 // global projections18 new Epsg4326(),19 new Mercator(),20 new UTM(),21 // regional - alphabetical order by country name22 new LambertEST(), // Still needs proper default zoom23 new Lambert(), // Still needs proper default zoom24 new LambertCC9Zones(), // Still needs proper default zoom25 new UTM_France_DOM(),26 new TransverseMercatorLV(),27 new Puwg(),28 new Epsg3008(), // SWEREF99 13 3029 new SwissGrid(),30 }));20 new ArrayList<Projection>(Arrays.asList(new Projection[] { 21 // global projections 22 new Epsg4326(), 23 new Mercator(), 24 new UTM(), 25 // regional - alphabetical order by country name 26 new LambertEST(), // Still needs proper default zoom 27 new Lambert(), // Still needs proper default zoom 28 new LambertCC9Zones(), // Still needs proper default zoom 29 new UTM_France_DOM(), 30 new TransverseMercatorLV(), 31 new Puwg(), 32 new Epsg3008(), // SWEREF99 13 30 33 new SwissGrid(), 34 })); 31 35 32 36 public static ArrayList<Projection> getProjections() { … … 43 47 allProjections.add(proj); 44 48 } 49 50 static public EastNorth project(LatLon ll) { 51 if (ll == null) return null; 52 return Main.getProjection().latlon2eastNorth(ll); 53 } 54 55 static public LatLon inverseProject(EastNorth en) { 56 if (en == null) return null; 57 return Main.getProjection().eastNorth2latlon(en); 58 } 45 59 }
Note:
See TracChangeset
for help on using the changeset viewer.