Changeset 23190 in osm for applications/editors/josm/plugins/cadastre-fr
- Timestamp:
- 2010-09-15T18:54:18+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CacheControl.java
r21191 r23190 25 25 26 26 public class CacheControl implements Runnable { 27 27 28 28 public static final String cLambertCC9Z = "CC"; 29 29 … … 55 55 return ret; 56 56 } 57 57 58 58 public CacheControl(WMSLayer wmsLayer) { 59 59 cacheEnabled = Main.pref.getBoolean("cadastrewms.enableCaching", true); … … 110 110 int reply = (Integer)pane.getValue(); 111 111 // till here 112 112 113 113 if (reply == JOptionPane.OK_OPTION && loadCache(file, wmsLayer.getLambertZone())) { 114 114 return true; … … 136 136 } 137 137 } 138 138 139 139 private void delete(File file) { 140 140 System.out.println("Delete file "+file); … … 215 215 } 216 216 } 217 217 218 218 private String WMSFileExtension() { 219 219 String ext = String.valueOf((wmsLayer.getLambertZone() + 1)); -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreGrabber.java
r20390 r23190 52 52 } 53 53 } 54 54 55 55 public GeorefImage grabParcels(WMSLayer wmsLayer, EastNorth lambertMin, EastNorth lambertMax) throws IOException, OsmTransferException { 56 56 try { … … 63 63 } 64 64 } 65 65 66 66 private URL getURLRaster(WMSLayer wmsLayer, EastNorth lambertMin, EastNorth lambertMax) throws MalformedURLException { 67 67 // GET /scpc/wms?version=1.1&request=GetMap&layers=CDIF:PMC@QH4480001701&format=image/png&bbox=-1186,0,13555,8830&width=576&height=345&exception=application/vnd.ogc.se_inimage&styles= HTTP/1.1 … … 85 85 EastNorth lambertMin, EastNorth lambertMax) throws MalformedURLException { 86 86 String str = new String(wmsInterface.baseURL+"/scpc/wms?version=1.1&request=GetMap"); 87 str += "&layers="+ layers; 87 str += "&layers="+ layers; 88 88 str += "&format=image/png"; 89 89 //str += "&format=image/jpeg"; … … 100 100 101 101 private URL getURLVector(EastNorth lambertMin, EastNorth lambertMax) throws MalformedURLException { 102 return buildURLVector(CadastrePlugin.grabLayers, CadastrePlugin.grabStyles, 103 CadastrePlugin.imageWidth, CadastrePlugin.imageHeight, 102 return buildURLVector(CadastrePlugin.grabLayers, CadastrePlugin.grabStyles, 103 CadastrePlugin.imageWidth, CadastrePlugin.imageHeight, 104 104 lambertMin, lambertMax); 105 105 } -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java
r22387 r23190 53 53 final String cOptionListEnd = "</option>"; 54 54 final String cBBoxCommunStart = "new GeoBox("; 55 final String cBBoxCommunEnd = ")"; 55 final String cBBoxCommunEnd = ")"; 56 56 57 57 final String cInterfaceVector = "afficherCarteCommune.do"; … … 62 62 final String cImageNameStart = ">Feuille "; 63 63 final String cTAImageNameStart = "Tableau d'assemblage <strong>"; 64 64 65 65 final static long cCookieExpiration = 30 * 60 * 1000; // 30 minutes expressed in milliseconds 66 66 … … 97 97 98 98 /** 99 * 99 * 100 100 * @return true if a cookie is delivered by WMS and false is WMS is not opening a client session 101 101 * (too many clients or in maintenance) … … 141 141 cookie = null; 142 142 } 143 143 144 144 public boolean isCookieExpired() { 145 145 long now = new Date().getTime(); … … 165 165 urlConn.setRequestProperty("Cookie", this.cookie); 166 166 } 167 167 168 168 private void getInterface(WMSLayer wmsLayer) throws IOException, DuplicateLayerException { 169 169 // first attempt : search for given name without codeCommune … … 379 379 return lines; 380 380 } 381 381 382 382 private void parseFeuillesList(String input) { 383 383 listOfFeuilles.clear(); … … 402 402 } 403 403 } 404 404 405 405 private String selectMunicipalityDialog(WMSLayer wmsLayer) { 406 406 JPanel p = new JPanel(new GridBagLayout()); … … 455 455 * and store it in given wmsLayer 456 456 * In case of raster image, we also check in the same http request if the image is already georeferenced 457 * and store the result in the wmsLayer as well. 457 * and store the result in the wmsLayer as well. 458 458 * @param wmsLayer the WMSLayer where the commune data and images are stored 459 459 * @throws IOException … … 502 502 } 503 503 } 504 504 505 505 private void parseGeoreferences(WMSLayer wmsLayer, String input) { 506 506 if (input.lastIndexOf(cBBoxCommunStart) != -1) { … … 537 537 } 538 538 } 539 539 540 540 private double tryParseDouble(String str) { 541 541 try { -
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 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 } -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java
r22387 r23190 40 40 41 41 private JCheckBox disableImageCropping = new JCheckBox(tr("Disable image cropping during georeferencing.")); 42 42 43 43 private JCheckBox enableTableauAssemblage = new JCheckBox(tr("Use \"Tableau d''assemblage\"")); 44 44 45 45 private JCheckBox autoFirstLayer = new JCheckBox(tr("Select first WMS layer in list.")); 46 46 47 47 private JCheckBox dontUseRelation = new JCheckBox(tr("Don't use relation for addresses (but \"addr:street\" on elements).")); 48 48 49 49 private JRadioButton grabMultiplier1 = new JRadioButton("", true); 50 50 … … 54 54 55 55 private JRadioButton grabMultiplier4 = new JRadioButton("", true); 56 56 57 57 private JRadioButton crosspiece1 = new JRadioButton("off"); 58 58 59 59 private JRadioButton crosspiece2 = new JRadioButton("25m"); 60 60 … … 87 87 JLabel jLabelCacheSize = new JLabel(tr("Max. cache size (in MB)")); 88 88 private JTextField cacheSize = new JTextField(20); 89 89 90 90 static final String DEFAULT_RASTER_DIVIDER = "5"; 91 91 private JTextField rasterDivider = new JTextField(10); 92 92 93 93 static final int DEFAULT_CROSSPIECES = 0; 94 94 95 95 public void addGui(final PreferenceTabbedPane gui) { 96 96 … … 101 101 + "before any upload of data created by this plugin."); 102 102 JPanel cadastrewmsMast = gui.createPreferenceTab("cadastrewms.gif", I18n.tr("French cadastre WMS"), description); 103 103 104 104 JPanel cadastrewms = new JPanel(new GridBagLayout()); 105 105 cadastrewms.setBorder(BorderFactory.createEmptyBorder(0,0,0,0)); … … 177 177 cadastrewms.add(grabRes2, GBC.std().insets(5, 0, 5, 0)); 178 178 cadastrewms.add(grabRes3, GBC.eol().fill(GBC.HORIZONTAL).insets(5, 5, 0, 5)); 179 179 180 180 // option to select image zooming interpolation method 181 181 JLabel jLabelImageZoomInterpolation = new JLabel(tr("Image filter interpolation:")); … … 185 185 imageInterpolationMethod.addItem(tr("Bicubic (slow)")); 186 186 String savedImageInterpolationMethod = Main.pref.get("cadastrewms.imageInterpolation", "standard"); 187 if (savedImageInterpolationMethod.equals("bilinear")) 187 if (savedImageInterpolationMethod.equals("bilinear")) 188 188 imageInterpolationMethod.setSelectedIndex(1); 189 else if (savedImageInterpolationMethod.equals("bicubic")) 189 else if (savedImageInterpolationMethod.equals("bicubic")) 190 190 imageInterpolationMethod.setSelectedIndex(2); 191 191 else … … 195 195 // separator 196 196 cadastrewms.add(new JSeparator(SwingConstants.HORIZONTAL), GBC.eol().fill(GBC.HORIZONTAL)); 197 197 198 198 // the vectorized images multiplier 199 199 JLabel jLabelScale = new JLabel(tr("Vector images grab multiplier:")); … … 275 275 layerCommune.setToolTipText(tr("Municipality administrative borders.")); 276 276 cadastrewms.add(layerCommune, GBC.eop().insets(5, 0, 5, 0)); 277 277 278 278 // separator 279 279 cadastrewms.add(new JSeparator(SwingConstants.HORIZONTAL), GBC.eol().fill(GBC.HORIZONTAL)); … … 335 335 // separator 336 336 cadastrewms.add(new JSeparator(SwingConstants.HORIZONTAL), GBC.eol().fill(GBC.HORIZONTAL)); 337 337 338 338 // option to select the first WMS layer 339 339 autoFirstLayer.setSelected(Main.pref.getBoolean("cadastrewms.autoFirstLayer", false)); … … 348 348 dontUseRelation.setToolTipText(tr("Enable this to use the tag \"add:street\" on nodes.")); 349 349 cadastrewms.add(dontUseRelation, GBC.eop().insets(0, 0, 0, 0)); 350 350 351 351 // end of dialog, scroll bar 352 352 cadastrewms.add(Box.createVerticalGlue(), GBC.eol().fill(GBC.VERTICAL)); … … 374 374 else if (imageInterpolationMethod.getSelectedIndex() == 1) 375 375 Main.pref.put("cadastrewms.imageInterpolation", "bilinear"); 376 else 376 else 377 377 Main.pref.put("cadastrewms.imageInterpolation", "standard"); 378 378 if (grabMultiplier1.isSelected()) -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CheckSourceUploadHook.java
r19149 r23190 38 38 * Add the tag "source" if it doesn't exist for all new Nodes and Ways before uploading 39 39 */ 40 public boolean checkUpload(APIDataSet apiDataSet) 40 public boolean checkUpload(APIDataSet apiDataSet) 41 41 { 42 42 if (CadastrePlugin.autoSourcing && CadastrePlugin.pluginUsed && !apiDataSet.getPrimitivesToAdd().isEmpty()) { -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGBuilding.java
r20412 r23190 54 54 @Override 55 55 public void realRun() throws IOException, OsmTransferException { 56 56 progressMonitor.indeterminateSubTask(tr("Contacting WMS Server...")); 57 57 errorMessage = null; 58 58 try { -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGTask.java
r20412 r23190 57 57 @Override 58 58 public void realRun() throws IOException, OsmTransferException { 59 59 progressMonitor.indeterminateSubTask(tr("Contacting WMS Server...")); 60 60 errorMessage = null; 61 61 try { -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java
r20412 r23190 16 16 17 17 private WMSLayer wmsLayer; 18 private Bounds bounds; 19 private CadastreGrabber grabber = CadastrePlugin.cadastreGrabber; 18 private Bounds bounds; 19 private CadastreGrabber grabber = CadastrePlugin.cadastreGrabber; 20 20 private static String errorMessage; 21 21 -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/EastNorthBound.java
r18544 r23190 31 31 return enb; 32 32 } 33 33 34 34 public Bounds toBounds() { 35 35 return new Bounds(Main.proj.eastNorth2latlon(min), Main.proj.eastNorth2latlon(max)); -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/GeorefImage.java
r22230 r23190 30 30 public EastNorth max; 31 31 // bbox of the georeferenced original image (raster only) (inclined if rotated and before cropping) 32 // P[0] is bottom,left then next are clockwise. 32 // P[0] is bottom,left then next are clockwise. 33 33 public EastNorth[] orgRaster = new EastNorth[4]; 34 // bbox of the georeferenced original image (raster only) after cropping 34 // bbox of the georeferenced original image (raster only) after cropping 35 35 public EastNorth[] orgCroppedRaster = new EastNorth[4]; 36 36 // angle with georeferenced original image after rotation (raster images only)(in radian) … … 46 46 public GeorefImage(BufferedImage img, EastNorth min, EastNorth max) { 47 47 image = img; 48 48 49 49 this.min = min; 50 50 this.max = max; … … 70 70 71 71 /** 72 * Recalculate the new bounding box of the image based on the four points provided as parameters. 73 * The new bbox defined in [min.max] will retain the extreme values of both boxes. 72 * Recalculate the new bounding box of the image based on the four points provided as parameters. 73 * The new bbox defined in [min.max] will retain the extreme values of both boxes. 74 74 * @param p1 one of the bounding box corner 75 75 * @param p2 one of the bounding box corner … … 128 128 g.drawLine(croppedPoint[i].x, croppedPoint[i].y, croppedPoint[i+1].x, croppedPoint[i+1].y); 129 129 } 130 /* 130 /* 131 131 //Uncomment this section to display the original image size (before cropping) 132 132 Point[] orgPoint = new Point[5]; … … 212 212 imageOriginalHeight = in.readInt(); 213 213 imageOriginalWidth = in.readInt(); 214 } 214 } 215 215 image = (BufferedImage) ImageIO.read(ImageIO.createImageInputStream(in)); 216 216 updatePixelPer(); … … 276 276 } 277 277 } 278 278 279 279 /** 280 280 * Change this image scale by moving the min,max coordinates around an anchor 281 * @param anchor 281 * @param anchor 282 282 * @param proportion 283 283 */ … … 324 324 angle+=delta_ang; 325 325 } 326 326 327 327 /** 328 328 * Crop the image based on new bbox coordinates adj1 and adj2 (for raster images only). -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/ImageModifier.java
r20931 r23190 19 19 20 20 protected int parcelColor = Color.RED.getRGB(); 21 21 22 22 public BufferedImage bufferedImage; 23 23 … … 31 31 new byte[] { (byte) 0, (byte) 0xFF } 32 32 ); 33 33 34 34 BufferedImage dest = new BufferedImage( 35 35 src.getWidth(), src.getHeight(), … … 37 37 icm 38 38 ); 39 39 40 40 ColorConvertOp cco = new ColorConvertOp( 41 41 src.getColorModel().getColorSpace(), … … 43 43 null 44 44 ); 45 45 46 46 cco.filter(src, dest); 47 47 48 48 return dest; 49 49 } … … 72 72 return convert4(src, cmap); 73 73 } 74 74 75 75 /** 76 76 * Converts the source image to 4-bit colour … … 96 96 ); 97 97 cco.filter(src, dest); 98 98 99 99 return dest; 100 100 } 101 101 102 102 protected BufferedImage convert8(BufferedImage src) { 103 103 BufferedImage dest = new BufferedImage( … … 115 115 116 116 public boolean isBuildingColor(int rgb, boolean ignoreParcelColor) { 117 for (int i = 0; i < cBuilingFootColors.length; i++) 117 for (int i = 0; i < cBuilingFootColors.length; i++) 118 118 if (rgb == cBuilingFootColors[i]) 119 119 return true; … … 124 124 125 125 public boolean isRoofColor(int rgb, boolean ignoreParcelColor) { 126 for (int i = 0; i < cRoofColors.length; i++) 126 for (int i = 0; i < cRoofColors.length; i++) 127 127 if (rgb == cRoofColors[i]) 128 128 return true; … … 152 152 return ret; 153 153 } 154 154 155 155 /** 156 156 * Checks if the rgb value is the black background color 157 * @param 157 * @param 158 158 * @return 159 159 */ -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrabPlanImage.java
r21493 r23190 180 180 */ 181 181 private boolean startCropping() { 182 183 184 185 186 187 188 189 190 191 192 193 194 195 182 mode = cGetCorners; 183 countMouseClicked = 0; 184 Object[] options = { "OK", "Cancel" }; 185 int ret = JOptionPane.showOptionDialog( null, 186 tr("Click first corner for image cropping\n(two points required)"), 187 tr("Image cropping"), 188 JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE, 189 null, options, options[0]); 190 if (ret == JOptionPane.OK_OPTION) { 191 mouseClickedTime = System.currentTimeMillis(); 192 } else 193 if (canceledOrRestartCurrAction("image cropping")) 194 return startCropping(); 195 return true; 196 196 } 197 197 … … 201 201 */ 202 202 private boolean continueCropping() { 203 204 205 206 207 208 209 210 211 212 213 203 Object[] options = { "OK", "Cancel" }; 204 int ret = JOptionPane.showOptionDialog( null, 205 tr("Click second corner for image cropping"), 206 tr("Image cropping"), 207 JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE, 208 null, options, options[0]); 209 if (ret != JOptionPane.OK_OPTION) { 210 if (canceledOrRestartCurrAction("image cropping")) 211 return startCropping(); 212 } 213 return true; 214 214 } 215 215 … … 219 219 */ 220 220 private boolean startGeoreferencing() { 221 222 223 224 225 226 227 228 229 230 231 232 233 234 221 countMouseClicked = 0; 222 mode = cGetLambertCrosspieces; 223 Object[] options = { "OK", "Cancel" }; 224 int ret = JOptionPane.showOptionDialog( null, 225 tr("Click first Lambert crosspiece for georeferencing\n(two points required)"), 226 tr("Image georeferencing"), 227 JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE, 228 null, options, options[0]); 229 if (ret == JOptionPane.OK_OPTION) { 230 mouseClickedTime = System.currentTimeMillis(); 231 } else 232 if (canceledOrRestartCurrAction("georeferencing")) 233 return startGeoreferencing(); 234 return true; 235 235 } 236 236 … … 240 240 */ 241 241 private boolean continueGeoreferencing() { 242 243 244 245 246 247 248 249 250 251 252 242 Object[] options = { "OK", "Cancel" }; 243 int ret = JOptionPane.showOptionDialog( null, 244 tr("Click second Lambert crosspiece for georeferencing"), 245 tr("Image georeferencing"), 246 JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE, 247 null, options, options[0]); 248 if (ret != JOptionPane.OK_OPTION) { 249 if (canceledOrRestartCurrAction("georeferencing")) 250 return startGeoreferencing(); 251 } 252 return true; 253 253 } 254 254 … … 271 271 */ 272 272 private boolean canceledOrRestartCurrAction(String action) { 273 274 275 276 277 278 273 Object[] options = { "Cancel", "Retry" }; 274 int selectedValue = JOptionPane.showOptionDialog( null, 275 tr("Do you want to cancel completely\n"+ 276 "or just retry "+action+" ?"), "", 277 JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, 278 null, options, options[0]); 279 279 countMouseClicked = 0; 280 280 if (selectedValue == 0) { // "Cancel" 281 282 281 // remove layer 282 Main.map.mapView.removeLayer(wmsLayer); 283 283 wmsLayer = null; 284 284 Main.map.mapView.removeMouseListener(this); -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionLoadFromCache.java
r20824 r23190 77 77 if (wmsLayer.getCacheControl().loadCache(file, layoutZone)) { 78 78 CadastrePlugin.addWMSLayer(wmsLayer); 79 } 79 } 80 80 } 81 81 } -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionNewLocation.java
r21202 r23190 25 25 26 26 private static final long serialVersionUID = 1L; 27 27 28 28 private static final String departements[] = { 29 29 "", tr("(optional)"), 30 30 "001", "01 - Ain", "002", "02 - Aisne", "003", "03 - Allier", "004", "04 - Alpes de Haute-Provence", "005", "05 - Hautes-Alpes", 31 31 "006", "06 - Alpes-Maritimes", "007", "07 - Ard\u00eache", "008", "08 - Ardennes", "009", "09 - Ari\u00e8ge", "010", "10 - Aube", 32 "011", "11 - Aude", "012", "12 - Aveyron", "013", "13 - Bouches-du-Rh\u00f4ne", "014", "14 - Calvados", "015", "15 - Cantal", 33 "016", "16 - Charente", "017", "17 - Charente-Maritime", "018", "18 - Cher", "019", "19 - Corr\u00e8ze", 34 "02A", "2A - Corse-du-Sud", "02B", "2B - Haute-Corse", 35 "021", "21 - C\u00f4te-d'Or", "022", "22 - C\u00f4tes d'Armor", "023", "23 - Creuse", "024", "24 - Dordogne", "025", "25 - Doubs", 32 "011", "11 - Aude", "012", "12 - Aveyron", "013", "13 - Bouches-du-Rh\u00f4ne", "014", "14 - Calvados", "015", "15 - Cantal", 33 "016", "16 - Charente", "017", "17 - Charente-Maritime", "018", "18 - Cher", "019", "19 - Corr\u00e8ze", 34 "02A", "2A - Corse-du-Sud", "02B", "2B - Haute-Corse", 35 "021", "21 - C\u00f4te-d'Or", "022", "22 - C\u00f4tes d'Armor", "023", "23 - Creuse", "024", "24 - Dordogne", "025", "25 - Doubs", 36 36 "026", "26 - Dr\u00f4me", "027", "27 - Eure", "028", "28 - Eure-et-Loir", "029", "29 - Finist\u00e8re", "030", "30 - Gard", 37 "031", "31 - Haute-Garonne", "032", "32 - Gers", "033", "33 - Gironde", "034", "34 - H\u00e9rault", "035", "35 - Ille-et-Vilaine", 37 "031", "31 - Haute-Garonne", "032", "32 - Gers", "033", "33 - Gironde", "034", "34 - H\u00e9rault", "035", "35 - Ille-et-Vilaine", 38 38 "036", "36 - Indre", "037", "37 - Indre-et-Loire", "038", "38 - Is\u00e8re", "039", "39 - Jura", "040", "40 - Landes", 39 "041", "41 - Loir-et-Cher", "042", "42 - Loire", "043", "43 - Haute-Loire", "044", "44 - Loire-Atlantique", "045", "45 - Loiret", 39 "041", "41 - Loir-et-Cher", "042", "42 - Loire", "043", "43 - Haute-Loire", "044", "44 - Loire-Atlantique", "045", "45 - Loiret", 40 40 "046", "46 - Lot", "047", "47 - Lot-et-Garonne", "048", "48 - Loz\u00e8re", "049", "49 - Maine-et-Loire", "050", "50 - Manche", 41 "051", "51 - Marne", "052", "52 - Haute-Marne", "053", "53 - Mayenne", "054", "54 - Meurthe-et-Moselle", "055", "55 - Meuse", 41 "051", "51 - Marne", "052", "52 - Haute-Marne", "053", "53 - Mayenne", "054", "54 - Meurthe-et-Moselle", "055", "55 - Meuse", 42 42 "056", "56 - Morbihan", "057", "57 - Moselle", "058", "58 - Ni\u00e8vre", "059", "59 - Nord", "060", "60 - Oise", 43 "061", "61 - Orne", "062", "62 - Pas-de-Calais", "063", "63 - Puy-de-D\u00f4me", "064", "64 - Pyr\u00e9n\u00e9es-Atlantiques", "065", "65 - Hautes-Pyr\u00e9n\u00e9es", 43 "061", "61 - Orne", "062", "62 - Pas-de-Calais", "063", "63 - Puy-de-D\u00f4me", "064", "64 - Pyr\u00e9n\u00e9es-Atlantiques", "065", "65 - Hautes-Pyr\u00e9n\u00e9es", 44 44 "066", "66 - Pyr\u00e9n\u00e9es-Orientales", "067", "67 - Bas-Rhin", "068", "68 - Haut-Rhin", "069", "69 - Rh\u00f4ne", "070", "70 - Haute-Sa\u00f4ne", 45 "071", "71 - Sa\u00f4ne-et-Loire", "072", "72 - Sarthe", "073", "73 - Savoie", "074", "74 - Haute-Savoie", "075", "75 - Paris", 45 "071", "71 - Sa\u00f4ne-et-Loire", "072", "72 - Sarthe", "073", "73 - Savoie", "074", "74 - Haute-Savoie", "075", "75 - Paris", 46 46 "076", "76 - Seine-Maritime", "077", "77 - Seine-et-Marne", "078", "78 - Yvelines", "079", "79 - Deux-S\u00e8vres", "080", "80 - Somme", 47 "081", "81 - Tarn", "082", "82 - Tarn-et-Garonne", "083", "83 - Var", "084", "84 - Vaucluse", "085", "85 - Vend\u00e9e", 47 "081", "81 - Tarn", "082", "82 - Tarn-et-Garonne", "083", "83 - Var", "084", "84 - Vaucluse", "085", "85 - Vend\u00e9e", 48 48 "086", "86 - Vienne", "087", "87 - Haute-Vienne", "088", "88 - Vosges", "089", "89 - Yonne", "090", "90 - Territoire de Belfort", 49 "091", "91 - Essonne", "092", "92 - Hauts-de-Seine", "093", "93 - Seine-Saint-Denis", "094", "94 - Val-de-Marne", "095", "95 - Val-d'Oise", 49 "091", "91 - Essonne", "092", "92 - Hauts-de-Seine", "093", "93 - Seine-Saint-Denis", "094", "94 - Val-de-Marne", "095", "95 - Val-d'Oise", 50 50 "971", "971 - Guadeloupe", "972", "972 - Martinique", "973", "973 - Guyane", "974", "974 - R\u00e9union" 51 51 }; … … 81 81 for (int i=0; i < departements.length; i=i+2) 82 82 if (departements[i].equals(Main.pref.get("cadastrewms.codeDepartement"))) 83 inputDepartement.setSelectedIndex(i/2); 83 inputDepartement.setSelectedIndex(i/2); 84 84 } 85 85 p.add(labelSectionNewLocation, GBC.eol()); -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSLayer.java
r22547 r23190 104 104 105 105 @Override 106 106 public void destroy() { 107 107 // if the layer is currently saving the images in the cache, wait until it's finished 108 108 if (cacheControl != null) { … … 305 305 saveAsPng.setEnabled(isRaster); 306 306 return new Action[] { 307 307 LayerListDialog.getInstance().createShowHideLayerAction(), 308 308 LayerListDialog.getInstance().createDeleteLayerAction(), 309 309 new MenuActionLoadFromCache(),
Note:
See TracChangeset
for help on using the changeset viewer.