Changeset 18278 in osm for applications/editors/josm/plugins/cadastre-fr
- Timestamp:
- 2009-10-25T20:48:47+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CacheControl.java
r18207 r18278 12 12 import static org.openstreetmap.josm.tools.I18n.tr; 13 13 14 import java.awt.image.BufferedImage;15 14 import java.io.*; 16 15 import java.util.ArrayList; -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java
r18271 r18278 76 76 * - fixed bug of raster image loaded from cache not working on Java1.6 77 77 * - improve mouse click bounce detection during georeferencing process 78 * 1.4 2 3-Oct-2009 - add support for new Lambert CC 9 Zones projection78 * 1.4 25-Oct-2009 - add support for new Lambert CC 9 Zones projection 79 79 * - add optional crosspieces display on raster image layers 80 80 * - add automatic raster images georeferencing when WMS provides data -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSPlanImage.java
r18271 r18278 4 4 5 5 import java.io.IOException; 6 import java.util.ArrayList;7 6 import java.util.concurrent.Future; 8 7 -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionNewLocation.java
r18207 r18278 7 7 import java.util.ArrayList; 8 8 9 import javax.swing.JComboBox;10 9 import javax.swing.JLabel; 11 10 import javax.swing.JOptionPane; … … 50 49 inputTown.setToolTipText(tr("<html>Enter the town,village or city name.<br>" 51 50 + "Use the syntax and punctuation known by www.cadastre.gouv.fr .</html>")); 52 JComboBox inputWMSList = null;53 51 54 52 p.add(labelSectionNewLocation, GBC.eol()); … … 88 86 Main.main.addLayer(wmsLayer); 89 87 System.out.println("Add new layer with Location:" + inputTown.getText()); 90 } else if (existingLayers != null && existingLayers.size() > 0 && inputWMSList.getSelectedIndex() > 0) {91 wmsLayer = existingLayers.get(inputWMSList.getSelectedIndex()-1);88 } else if (existingLayers != null && existingLayers.size() > 0 && Main.map.mapView.getActiveLayer() instanceof WMSLayer) { 89 wmsLayer = (WMSLayer)Main.map.mapView.getActiveLayer(); 92 90 resetCookie = true; 93 91 } -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionSaveRasterAs.java
r18109 r18278 5 5 import java.awt.event.ActionEvent; 6 6 import java.awt.image.BufferedImage; 7 import java.io.BufferedOutputStream;8 7 import java.io.File; 9 import java.io.FileOutputStream;10 8 import java.io.IOException; 11 9 … … 16 14 import org.openstreetmap.josm.Main; 17 15 import org.openstreetmap.josm.actions.JosmAction; 18 19 import com.sun.image.codec.jpeg.JPEGCodec;20 import com.sun.image.codec.jpeg.JPEGImageEncoder;21 16 22 17 public class MenuActionSaveRasterAs extends JosmAction { -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSAdjustAction.java
r18256 r18278 38 38 @Override public void enterMode() { 39 39 if (Main.map != null) { 40 selectedLayer = null; 41 WMSLayer possibleLayer = null; 42 int cRasterLayers = 0; 43 for (Layer l : Main.map.mapView.getAllLayers()) { 44 if (l instanceof WMSLayer && ((WMSLayer)l).isRaster()) { 45 possibleLayer = (WMSLayer)l; 46 cRasterLayers++; 47 } 48 } 40 49 Layer activeLayer = Main.map.mapView.getActiveLayer(); 41 50 if (activeLayer instanceof WMSLayer && ((WMSLayer)activeLayer).isRaster()) { 51 selectedLayer = (WMSLayer)activeLayer; 52 } else if (cRasterLayers == 1) { 53 selectedLayer = possibleLayer; 54 } 55 if (selectedLayer != null) { 42 56 super.enterMode(); 43 57 Main.map.mapView.addMouseListener(this); 44 58 Main.map.mapView.addMouseMotionListener(this); 45 59 rasterMoved = false; 46 selectedLayer = (WMSLayer)activeLayer;47 60 } else { 48 61 JOptionPane.showMessageDialog(Main.parent,tr("This mode works only if active layer is\n"
Note:
See TracChangeset
for help on using the changeset viewer.