Ignore:
Timestamp:
2010-04-07T19:53:12+02:00 (14 years ago)
Author:
pieren
Message:

Add the modified projection for the french DOM "La Réunion".

Location:
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CacheControl.java

    r20390 r20824  
    2222import org.openstreetmap.josm.Main;
    2323import org.openstreetmap.josm.data.projection.LambertCC9Zones;
    24 import org.openstreetmap.josm.data.projection.UTM_20N_France_DOM;
     24import org.openstreetmap.josm.data.projection.UTM_France_DOM;
    2525
    2626public class CacheControl implements Runnable {
     
    211211        if (Main.proj instanceof LambertCC9Zones)
    212212            ext = cLambertCC9Z + ext;
    213         else if (Main.proj instanceof UTM_20N_France_DOM)
     213        else if (Main.proj instanceof UTM_France_DOM)
    214214            ext = cUTM20N + ext;
    215215        return ext;
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CacheFileUTM20NFilter.java

    r18720 r20824  
    1919        new CacheFileUTM20NFilter("utm1", tr("Guadeloupe Fort-Marigot cache file (.UTM1)")),
    2020        new CacheFileUTM20NFilter("utm2", tr("Guadeloupe Ste-Anne cache file (.UTM2)")),
    21         new CacheFileUTM20NFilter("utm3", tr("Martinique Fort Desaix cache file (.UTM3)"))
     21        new CacheFileUTM20NFilter("utm3", tr("Martinique Fort Desaix cache file (.UTM3)")),
     22        new CacheFileUTM20NFilter("utm4", tr("Reunion RGR92 cache file (.UTM4)"))
    2223        };
    2324
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java

    r20659 r20824  
    342342    public static boolean isCadastreProjection() {
    343343        return Main.proj.toString().equals(new Lambert().toString())
    344             || Main.proj.toString().equals(new UTM_20N_France_DOM().toString())
    345             || Main.proj.toString().equals(new GaussLaborde_Reunion().toString())
     344            || Main.proj.toString().equals(new UTM_France_DOM().toString())
    346345            || Main.proj.toString().equals(new LambertCC9Zones().toString());
    347346    }
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionLoadFromCache.java

    r19928 r20824  
    1313import org.openstreetmap.josm.data.projection.Lambert;
    1414import org.openstreetmap.josm.data.projection.LambertCC9Zones;
    15 import org.openstreetmap.josm.data.projection.UTM_20N_France_DOM;
     15import org.openstreetmap.josm.data.projection.UTM_France_DOM;
    1616import org.openstreetmap.josm.gui.layer.Layer;
    1717
     
    4040                    !(Main.proj instanceof LambertCC9Zones))
    4141                    || (ext.length() == 4 && ext.substring(0, CacheControl.cUTM20N.length()).equals(CacheControl.cUTM20N) &&
    42                             !(Main.proj instanceof UTM_20N_France_DOM))
     42                            !(Main.proj instanceof UTM_France_DOM))
    4343                    || (ext.length() == 1) && !(Main.proj instanceof Lambert)) {
    4444                        JOptionPane.showMessageDialog(Main.parent, tr("{0} not allowed with the current projection", filename), tr("Error"), JOptionPane.ERROR_MESSAGE);
     
    9393            else if (Main.proj instanceof LambertCC9Zones)
    9494                fc.addChoosableFileFilter(CacheFileLambert9ZoneFilter.filters[layoutZone]);
    95             else if (Main.proj instanceof UTM_20N_France_DOM)
     95            else if (Main.proj instanceof UTM_France_DOM)
    9696                fc.addChoosableFileFilter(CacheFileUTM20NFilter.filters[layoutZone]);
    9797        }
     
    111111        else if (Main.proj instanceof Lambert)
    112112            zone = ((Lambert)Main.proj).getLayoutZone();
    113         else if (Main.proj instanceof UTM_20N_France_DOM)
    114             zone = ((UTM_20N_France_DOM)Main.proj).getCurrentGeodesic();
     113        else if (Main.proj instanceof UTM_France_DOM)
     114            zone = ((UTM_France_DOM)Main.proj).getCurrentGeodesic();
    115115        return zone;
    116116    }
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionNewLocation.java

    r20585 r20824  
    1717import org.openstreetmap.josm.data.projection.Lambert;
    1818import org.openstreetmap.josm.data.projection.LambertCC9Zones;
    19 import org.openstreetmap.josm.data.projection.UTM_20N_France_DOM;
     19import org.openstreetmap.josm.data.projection.UTM_France_DOM;
    2020import org.openstreetmap.josm.gui.layer.Layer;
    2121import org.openstreetmap.josm.tools.GBC;
     
    8282            else if (Main.proj instanceof Lambert)
    8383                zone = ((Lambert)Main.proj).getLayoutZone();
    84             else if (Main.proj instanceof UTM_20N_France_DOM)
    85                 zone = ((UTM_20N_France_DOM)Main.proj).getCurrentGeodesic();
     84            else if (Main.proj instanceof UTM_France_DOM)
     85                zone = ((UTM_France_DOM)Main.proj).getCurrentGeodesic();
    8686            wmsLayer = new WMSLayer(location, codeCommune, zone);
    8787            CadastrePlugin.addWMSLayer(wmsLayer);
Note: See TracChangeset for help on using the changeset viewer.