Changeset 23190 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
- Timestamp:
- 2010-09-15T18:54:18+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
r22850 r23190 96 96 * - proper WMS layer cleanup at destruction (workaround for memory leak) 97 97 * - new cache format (v3) storing original image and cropped image bbox + angle 98 * - new cache format (v4) storing original image size for later rotation 98 * - new cache format (v4) storing original image size for later rotation 99 99 * - cache files read compatible with previous formats 100 100 * - raster image rotation issues fixed, now using shift+ctrl key instead of ctrl … … 104 104 * - improved download cancellation 105 105 * - from Erik Amzallag: 106 * - possibility to modify the auto-sourcing text just before upload 106 * - possibility to modify the auto-sourcing text just before upload 107 107 * - from Clément Ménier: 108 108 * - new option allowing an auto-selection of the first cadastre layer for grab … … 112 112 * - download cancellation improved 113 113 * - last deployment for Java1.5 compatibility 114 * 2.0 xx-xxx-xxxx - update projection for "La Reunion" departement to RGR92, UTM40S. 114 * 2.0 xx-xxx-xxxx - update projection for "La Reunion" departement to RGR92, UTM40S. 115 115 * - add 'departement' as option in the municipality selection 116 116 * - fixed bug in cache directory size control (and disabled by default) … … 145 145 146 146 public static int imageWidth, imageHeight; 147 147 148 148 public static String grabLayers, grabStyles = null; 149 149 … … 156 156 */ 157 157 public CadastrePlugin(PluginInformation info) throws Exception { 158 super(info);158 super(info); 159 159 System.out.println("Pluging cadastre-fr v"+VERSION+" started..."); 160 160 if (Main.pref.get("cadastrewms.cacheDir").equals("")) … … 218 218 219 219 public static void refreshConfiguration() { 220 source = checkSourceMillesime(); 220 source = checkSourceMillesime(); 221 221 autoSourcing = Main.pref.getBoolean("cadastrewms.autosourcing", true); 222 222 alterColors = Main.pref.getBoolean("cadastrewms.alterColors"); … … 234 234 } else if (currentResolution.equals("medium")){ 235 235 imageWidth = 800; imageHeight = 600; 236 } else { 236 } else { 237 237 imageWidth = 600; imageHeight = 400; 238 238 } 239 239 refreshLayersURL(); 240 240 241 241 // overwrite F11 shortcut used from the beginning by this plugin and recently used 242 242 // for full-screen switch in JOSM core … … 268 268 refreshMenu(); 269 269 } 270 270 271 271 private static void refreshLayersURL() { 272 272 grabLayers = ""; … … 346 346 } 347 347 } 348 348 349 349 public static boolean isCadastreProjection() { 350 350 return Main.proj.toString().equals(new Lambert().toString()) … … 360 360 361 361 // See OptionPaneUtil 362 // FIXME: this is a temporary solution. 362 // FIXME: this is a temporary solution. 363 363 public static void prepareDialog(JDialog dialog) { 364 364 if (Main.pref.getBoolean("window-handling.option-pane-always-on-top", true)) { … … 373 373 dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); 374 374 } 375 375 376 376 /** 377 377 * Adds the WMSLayer following this rule:<br/> … … 393 393 Main.main.addLayer(wmsLayer); 394 394 } 395 395 396 396 private static String checkSourceMillesime() { 397 397 java.util.Calendar calendar = java.util.Calendar.getInstance(); … … 411 411 return src; 412 412 } 413 413 414 414 }
Note:
See TracChangeset
for help on using the changeset viewer.
