Changeset 20824 in osm
- Timestamp:
- 2010-04-07T19:53:12+02:00 (15 years ago)
- 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 22 22 import org.openstreetmap.josm.Main; 23 23 import org.openstreetmap.josm.data.projection.LambertCC9Zones; 24 import org.openstreetmap.josm.data.projection.UTM_ 20N_France_DOM;24 import org.openstreetmap.josm.data.projection.UTM_France_DOM; 25 25 26 26 public class CacheControl implements Runnable { … … 211 211 if (Main.proj instanceof LambertCC9Zones) 212 212 ext = cLambertCC9Z + ext; 213 else if (Main.proj instanceof UTM_ 20N_France_DOM)213 else if (Main.proj instanceof UTM_France_DOM) 214 214 ext = cUTM20N + ext; 215 215 return ext; -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CacheFileUTM20NFilter.java
r18720 r20824 19 19 new CacheFileUTM20NFilter("utm1", tr("Guadeloupe Fort-Marigot cache file (.UTM1)")), 20 20 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)")) 22 23 }; 23 24 -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
r20659 r20824 342 342 public static boolean isCadastreProjection() { 343 343 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()) 346 345 || Main.proj.toString().equals(new LambertCC9Zones().toString()); 347 346 } -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionLoadFromCache.java
r19928 r20824 13 13 import org.openstreetmap.josm.data.projection.Lambert; 14 14 import org.openstreetmap.josm.data.projection.LambertCC9Zones; 15 import org.openstreetmap.josm.data.projection.UTM_ 20N_France_DOM;15 import org.openstreetmap.josm.data.projection.UTM_France_DOM; 16 16 import org.openstreetmap.josm.gui.layer.Layer; 17 17 … … 40 40 !(Main.proj instanceof LambertCC9Zones)) 41 41 || (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)) 43 43 || (ext.length() == 1) && !(Main.proj instanceof Lambert)) { 44 44 JOptionPane.showMessageDialog(Main.parent, tr("{0} not allowed with the current projection", filename), tr("Error"), JOptionPane.ERROR_MESSAGE); … … 93 93 else if (Main.proj instanceof LambertCC9Zones) 94 94 fc.addChoosableFileFilter(CacheFileLambert9ZoneFilter.filters[layoutZone]); 95 else if (Main.proj instanceof UTM_ 20N_France_DOM)95 else if (Main.proj instanceof UTM_France_DOM) 96 96 fc.addChoosableFileFilter(CacheFileUTM20NFilter.filters[layoutZone]); 97 97 } … … 111 111 else if (Main.proj instanceof Lambert) 112 112 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(); 115 115 return zone; 116 116 } -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionNewLocation.java
r20585 r20824 17 17 import org.openstreetmap.josm.data.projection.Lambert; 18 18 import org.openstreetmap.josm.data.projection.LambertCC9Zones; 19 import org.openstreetmap.josm.data.projection.UTM_ 20N_France_DOM;19 import org.openstreetmap.josm.data.projection.UTM_France_DOM; 20 20 import org.openstreetmap.josm.gui.layer.Layer; 21 21 import org.openstreetmap.josm.tools.GBC; … … 82 82 else if (Main.proj instanceof Lambert) 83 83 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(); 86 86 wmsLayer = new WMSLayer(location, codeCommune, zone); 87 87 CadastrePlugin.addWMSLayer(wmsLayer);
Note:
See TracChangeset
for help on using the changeset viewer.