Ignore:
Timestamp:
2010-12-28T21:08:08+01:00 (14 years ago)
Author:
pieren
Message:

improve error handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java

    r23190 r24899  
    4646                    if (wmsLayer.isRaster()) {
    4747                        // set raster image commune bounding box based on current view (before adjustment)
    48                         wmsLayer.setRasterBounds(bounds);
     48                        JOptionPane.showMessageDialog(Main.parent,tr("This commune is not vectorized.\nPlease use the other menu entry to georeference a \"Plan image\""));
     49                        Main.main.removeLayer(wmsLayer);
     50                        wmsLayer = null;
     51                        return;
    4952                    } else {
    5053                        // set vectorized commune bounding box by opening the standard web window
Note: See TracChangeset for help on using the changeset viewer.