Changeset 5234 in josm for trunk/src/org/openstreetmap/josm/data/projection/Projections.java
- Timestamp:
- 2012-05-12T18:23:08+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/Projections.java
r5228 r5234 6 6 import java.io.InputStream; 7 7 import java.io.InputStreamReader; 8 import java.util.ArrayList;9 import java.util.Arrays;10 8 import java.util.HashMap; 11 9 import java.util.Map; … … 33 31 */ 34 32 public class Projections { 35 /**36 * List of all available projections.37 */38 private static ArrayList<Projection> allProjections =39 new ArrayList<Projection>(Arrays.asList(new Projection[] {40 // global projections41 new Epsg4326(),42 new Mercator(),43 new UTM(),44 // regional - alphabetical order by country code45 new BelgianLambert1972(), // BE46 new BelgianLambert2008(), // BE47 new SwissGrid(), // CH48 new GaussKrueger(), // DE49 new LambertEST(), // EE50 new Lambert(), // FR51 new Lambert93(), // FR52 new LambertCC9Zones(), // FR53 new UTM_France_DOM(), // FR54 new TransverseMercatorLV(), // LV55 new Puwg(), // PL56 new Epsg3008(), // SE57 new CustomProjectionPrefGui()58 }));59 60 public static ArrayList<Projection> getProjections() {61 return allProjections;62 }63 64 /**65 * Adds a new projection to the list of known projections.66 *67 * For Plugins authors: make sure your plugin is an early plugin, i.e. put68 * Plugin-Early=true in your Manifest.69 */70 public static void addProjection(Projection proj) {71 allProjections.add(proj);72 }73 33 74 34 public static EastNorth project(LatLon ll) {
Note:
See TracChangeset
for help on using the changeset viewer.