Changeset 29677 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr
- Timestamp:
- 2013-06-21T00:29:01+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePreferenceSetting.java
r27852 r29677 86 86 private JTextField cacheSize = new JTextField(20); 87 87 88 static final String DEFAULT_RASTER_DIVIDER = " 5";88 static final String DEFAULT_RASTER_DIVIDER = "7"; 89 89 private JTextField rasterDivider = new JTextField(10); 90 90 91 91 static final int DEFAULT_CROSSPIECES = 0; 92 93 static final String DEFAULT_GRAB_MULTIPLIER = Scale.SQUARE_100M.value; 92 94 93 95 public CadastrePreferenceSetting() { … … 220 222 bgGrabMultiplier.add(grabMultiplier3); 221 223 bgGrabMultiplier.add(grabMultiplier4); 222 String currentScale = Main.pref.get("cadastrewms.scale", "1");224 String currentScale = Main.pref.get("cadastrewms.scale", DEFAULT_GRAB_MULTIPLIER); 223 225 if (currentScale.equals(Scale.X1.value)) 224 226 grabMultiplier1.setSelected(true); -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrabPlanImage.java
r29668 r29677 145 145 handleNewCoordinates(ea.east(), ea.north()); 146 146 } else { 147 countMouseClicked++;148 147 // ignore clicks outside the image 149 148 if (ea.east() < wmsLayer.getImage(0).min.east() || ea.east() > wmsLayer.getImage(0).max.east() 150 149 || ea.north() < wmsLayer.getImage(0).min.north() || ea.north() > wmsLayer.getImage(0).max.north()) 150 { 151 System.out.println("ignore clic outside the image"); 151 152 return; 153 } 154 countMouseClicked++; 152 155 if (mode == cGetCorners) { 153 156 if (countMouseClicked == 1) { -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSLayer.java
r26835 r29677 162 162 CadastrePreferenceSetting.DEFAULT_RASTER_DIVIDER))); 163 163 } else 164 divideBbox(b, Integer.parseInt(Main.pref.get("cadastrewms.scale", Scale.X1.toString())));164 divideBbox(b, Integer.parseInt(Main.pref.get("cadastrewms.scale", CadastrePreferenceSetting.DEFAULT_GRAB_MULTIPLIER))); 165 165 } 166 166 grabThread.addImages(dividedBbox); … … 194 194 // divide to fixed size squares 195 195 // grab all square in a spiral starting from the center (usually the most interesting place) 196 int c = Integer.parseInt(Main.pref.get("cadastrewms.squareSize", "100"));196 int c = Integer.parseInt(Main.pref.get("cadastrewms.squareSize", String.valueOf(CadastrePreferenceSetting.DEFAULT_SQUARE_SIZE))); 197 197 lambertMin = lambertMin.add(- minEast%c, - minNorth%c); 198 198 lambertMax = lambertMax.add(c - lambertMax.east()%c, c - lambertMax.north()%c);
Note:
See TracChangeset
for help on using the changeset viewer.