Ignore:
Timestamp:
2009-11-21T00:18:50+01:00 (15 years ago)
Author:
pieren
Message:

Add subprojection handling

File:
1 edited

Legend:

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

    r18544 r18720  
    2222import org.openstreetmap.josm.Main;
    2323import org.openstreetmap.josm.data.projection.LambertCC9Zones;
     24import org.openstreetmap.josm.data.projection.UTM_20N_France_DOM;
    2425
    2526public class CacheControl implements Runnable {
    2627   
    2728    public static final String cLambertCC9Z = "CC";
     29
     30    public static final String cUTM20N = "UTM";
    2831
    2932    public class ObjectOutputStreamAppend extends ObjectOutputStream {
     
    8790            if (Main.proj instanceof LambertCC9Zones)
    8891                extension = cLambertCC9Z + extension;
     92            else if (Main.proj instanceof UTM_20N_France_DOM)
     93                extension = cUTM20N + extension;
    8994            File file = new File(CadastrePlugin.cacheDir + wmsLayer.getName() + "." + extension);
    9095            if (file.exists()) {
     
    167172                if (Main.proj instanceof LambertCC9Zones)
    168173                    extension = cLambertCC9Z + extension;
     174                else if (Main.proj instanceof UTM_20N_France_DOM)
     175                    extension = cUTM20N + extension;
    169176                File file = new File(CadastrePlugin.cacheDir + wmsLayer.getName() + "." + extension);
    170177                try {
Note: See TracChangeset for help on using the changeset viewer.