Ignore:
Timestamp:
2012-05-12T18:23:08+02:00 (12 years ago)
Author:
bastiK
Message:

separate preference gui from core projection code (there may be bugs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/Projections.java

    r5228 r5234  
    66import java.io.InputStream;
    77import java.io.InputStreamReader;
    8 import java.util.ArrayList;
    9 import java.util.Arrays;
    108import java.util.HashMap;
    119import java.util.Map;
     
    3331 */
    3432public 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 projections
    41                 new Epsg4326(),
    42                 new Mercator(),
    43                 new UTM(),
    44                 // regional - alphabetical order by country code
    45                 new BelgianLambert1972(),   // BE
    46                 new BelgianLambert2008(),   // BE
    47                 new SwissGrid(),            // CH
    48                 new GaussKrueger(),         // DE
    49                 new LambertEST(),           // EE
    50                 new Lambert(),              // FR
    51                 new Lambert93(),            // FR
    52                 new LambertCC9Zones(),      // FR
    53                 new UTM_France_DOM(),       // FR
    54                 new TransverseMercatorLV(), // LV
    55                 new Puwg(),                 // PL
    56                 new Epsg3008(),             // SE
    57                 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. put
    68      * Plugin-Early=true in your Manifest.
    69      */
    70     public static void addProjection(Projection proj) {
    71         allProjections.add(proj);
    72     }
    7333
    7434    public static EastNorth project(LatLon ll) {
Note: See TracChangeset for help on using the changeset viewer.