Ignore:
Timestamp:
2011-07-01T00:44:06+02:00 (15 years ago)
Author:
pieren
Message:

For v2.2

  • replace deprecated Main.proj by newest Main.getProjection()
  • fix list of raster images (Feuilles) parsing failing after a Cadastre server change/maintenance
File:
1 edited

Legend:

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

    r25045 r26228  
    116116            // add the layer if it doesn't exist
    117117            int zone = -1;
    118             if (Main.proj instanceof LambertCC9Zones)
    119                 zone = ((LambertCC9Zones)Main.proj).getLayoutZone();
    120             else if (Main.proj instanceof Lambert)
    121                 zone = ((Lambert)Main.proj).getLayoutZone();
    122             else if (Main.proj instanceof UTM_France_DOM)
    123                 zone = ((UTM_France_DOM)Main.proj).getCurrentGeodesic();
     118            if (Main.getProjection() instanceof LambertCC9Zones)
     119                zone = ((LambertCC9Zones)Main.getProjection()).getLayoutZone();
     120            else if (Main.getProjection() instanceof Lambert)
     121                zone = ((Lambert)Main.getProjection()).getLayoutZone();
     122            else if (Main.getProjection() instanceof UTM_France_DOM)
     123                zone = ((UTM_France_DOM)Main.getProjection()).getCurrentGeodesic();
    124124            wmsLayer = new WMSLayer(location, codeCommune, zone);
    125125            wmsLayer.setDepartement(codeDepartement);
Note: See TracChangeset for help on using the changeset viewer.