Changeset 13611 in osm for applications/editors/josm/plugins/cadastre-fr/src
- Timestamp:
- 2009-02-08T20:34:53+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java
r13497 r13611 62 62 openInterface(); 63 63 } catch (IOException e) { 64 e.printStackTrace(); 64 JOptionPane.showMessageDialog(Main.parent, 65 tr("Town/city {0} not found or not available in WMS.\n" + 66 "Please check its availibility on www.cadastre.gouv.fr", wmsLayer.getLocation())); 65 67 return false; 66 68 } -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
r13545 r13611 66 66 * 0.9 05-Feb-2009 - grab vectorized full commune bbox, save in file, convert to OSM way 67 67 * and simplify 68 * 1.0 05-Feb-2009 - fix various bugs 68 69 */ 69 70 public class CadastrePlugin extends Plugin { 70 static String VERSION = " 0.8";71 static String VERSION = "1.0"; 71 72 72 73 static JMenu cadastreJMenu; … … 153 154 JMenuItem menuLoadFromCache = new JMenuItem(new MenuActionLoadFromCache()); 154 155 JMenuItem menuActionBoundaries = new JMenuItem(new MenuActionBoundaries()); 156 JMenuItem menuActionBuildings = new JMenuItem(new MenuActionBuildings()); 155 157 156 158 cadastreJMenu.add(menuGrab); … … 161 163 cadastreJMenu.add(menuLoadFromCache); 162 164 cadastreJMenu.add(menuActionBoundaries); 165 //cadastreJMenu.add(menuActionBuildings); 163 166 } 164 167 setEnabledAll(menuEnabled); … … 191 194 if (item != null) 192 195 if (item.getText().equals(MenuActionGrab.name) || 193 item.getText().equals(MenuActionBoundaries.name)) { 196 item.getText().equals(MenuActionBoundaries.name) || 197 item.getText().equals(MenuActionBuildings.name)) { 194 198 item.setEnabled(isEnabled); 195 199 } else if (item.getText().equals(MenuActionLambertZone.name)) { -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CheckSourceUploadHook.java
r13545 r13611 81 81 l.setVisibleRowCount(l.getModel().getSize() < 6 ? l.getModel().getSize() : 10); 82 82 p.add(new JScrollPane(l), GBC.eol().fill()); 83 boolean bContinue = JOptionPane.showConfirmDialog(Main.parent, p, tr("Add \"source= Cadastre...\" to?"),84 83 boolean bContinue = JOptionPane.showConfirmDialog(Main.parent, p, tr("Add \"source=...\" to elements?"), 84 JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION; 85 85 if (bContinue) 86 86 Main.main.undoRedo.add(new ChangePropertyCommand(sel, "source", CadastrePlugin.source)); -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGTask.java
r13545 r13611 95 95 private void createWay(String svg) { 96 96 String[] SVGpaths = new SVGParser().getPaths(svg); 97 //double[] fitViewBox = new double[SVGpaths.length];98 97 ArrayList<Double> fitViewBox = new ArrayList<Double>(); 99 98 ArrayList<ArrayList<EastNorth>> eastNorths = new ArrayList<ArrayList<EastNorth>>(); 100 99 for (int i=0; i< SVGpaths.length; i++) { 101 100 ArrayList<EastNorth> eastNorth = new ArrayList<EastNorth>(); 102 fitViewBox.add( createNodes(SVGpaths[i], eastNorth) ); ;101 fitViewBox.add( createNodes(SVGpaths[i], eastNorth) ); 103 102 eastNorths.add(eastNorth); 104 103 } -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/EastNorthBound.java
r13545 r13611 23 23 } 24 24 25 public EastNorthBound interpolate(EastNorthBound en2, double proportion) { 26 EastNorthBound enb = new EastNorthBound(this.min.interpolate(en2.min, proportion), 27 this.max.interpolate(en2.max, proportion)); 28 return enb; 29 } 30 25 31 @Override public String toString() { 26 32 return "EastNorthBound[" + min.east() + "," + min.north() + "," + max.east() + "," + max.north() + "]"; -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/ImageModifier.java
r13545 r13611 28 28 public ImageModifier(BufferedImage bi) { 29 29 bufferedImage = bi; 30 System.out.println("cadastrewms.alterColors="+Main.pref.getBoolean("cadastrewms.alterColors"));31 System.out.println("cadastrewms.backgroundTransparent="+Main.pref.getBoolean("cadastrewms.backgroundTransparent"));32 30 if (Main.pref.getBoolean("cadastrewms.alterColors")) { 33 31 changeColors(); … … 49 47 int josmBackgroundColor = ColorHelper.html2color(Main.pref.get("color.background", "#FFFFFF")).getRGB(); 50 48 boolean invertGrey = (Main.pref.getBoolean("cadastrewms.invertGrey")); 51 System.out.println("cadastrewms.invertGrey="+invertGrey);52 System.out.println("color.background="+Main.pref.get("color.background", "#FFFFFF"));53 49 for (int x = 0; x < w; x++) { 54 50 for (int y = 0; y < h; y++) { -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionLambertZone.java
r13497 r13611 29 29 public void actionPerformed(ActionEvent e) { 30 30 JPanel p = new JPanel(new GridBagLayout()); 31 String[] zones = { "", "1 (51.30 ° to 48.15°)", "2 (48.15° to 45.45°)", "3 (45.45° to 42.76°)", "4 (Corsica)" };31 String[] zones = { "", "1 (51.30 to 48.15 degrees)", "2 (48.15 to 45.45 degrees)", "3 (45.45 to 42.76 degrees)", "4 (Corsica)" }; 32 32 final JComboBox inputLambertZone = new JComboBox(zones); 33 33 JLabel newLambertZone = new JLabel(tr("Zone"));
Note:
See TracChangeset
for help on using the changeset viewer.