Ignore:
Timestamp:
2009-01-20T13:55:33+01:00 (11 years ago)
Author:
stoecker
Message:

fixed texts, added EPSG codes to projection (to fix WMS access)

Location:
trunk/src/org/openstreetmap/josm/data/projection
Files:
5 edited

Legend:

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

    r1169 r1309  
    2424    }
    2525
     26    public String toCode() {
     27        return "EPSG:4326";
     28    }
     29
    2630    public String getCacheDirectoryName() {
    2731        return "epsg4326";
  • trunk/src/org/openstreetmap/josm/data/projection/Lambert.java

    r1212 r1309  
    122122            } else if (layoutZone != currentZone) {
    123123                if ((currentZone < layoutZone && Math.abs(zoneLimits[currentZone] - lt) > cMaxOverlappingZones)
    124                         || (currentZone > layoutZone && Math.abs(zoneLimits[layoutZone] - lt) > cMaxOverlappingZones)) {
     124                || (currentZone > layoutZone && Math.abs(zoneLimits[layoutZone] - lt) > cMaxOverlappingZones)) {
    125125                    JOptionPane.showMessageDialog(Main.parent,
    126                                     tr("IMPORTANT : data positioned far away from\n"
    127                                             + "the current Lambert zone limits.\n"
    128                                             + "Do not upload any data after this message.\n"
    129                                             + "Undo your last action, Save your work \n"
    130                                             + "and Start a new layer on the new zone."));
     126                    tr("IMPORTANT : data positioned far away from\n"
     127                    + "the current Lambert zone limits.\n"
     128                    + "Do not upload any data after this message.\n"
     129                    + "Undo your last action, save your work\n"
     130                    + "and start a new layer on the new zone."));
    131131                    layoutZone = -1;
    132132                    dontDisplayErrors = true;
     
    157157    @Override public String toString() {
    158158        return tr("Lambert Zone (France)");
     159    }
     160
     161    public String toCode() {
     162        return "EPSG::"+(27571+currentZone);
    159163    }
    160164
  • trunk/src/org/openstreetmap/josm/data/projection/LambertEST.java

    r1230 r1309  
    9797    }
    9898
     99    public String toCode() {
     100        return "EPSG:3301";
     101    }
     102
    99103    public String getCacheDirectoryName() {
    100104        return "lambertest";
  • trunk/src/org/openstreetmap/josm/data/projection/Mercator.java

    r1261 r1309  
    3737    }
    3838
     39    public String toCode() {
     40        return "EPSG:3785"; /* TODO: Check if that is correct */
     41    }
     42
    3943    public String getCacheDirectoryName() {
    4044        return "mercator";
  • trunk/src/org/openstreetmap/josm/data/projection/Projection.java

    r1230 r1309  
    5858
    5959    /**
     60     * Return projection code.
     61     */
     62    String toCode();
     63
     64    /**
    6065     * Get a filename compatible string (for the cache directory)
    6166     */
Note: See TracChangeset for help on using the changeset viewer.