Ignore:
Timestamp:
2010-12-30T15:21:07+01:00 (14 years ago)
Author:
pieren
Message:

simplified some procedures

File:
1 edited

Legend:

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

    r24907 r24913  
    3333        try {
    3434            if (grabber.getWmsInterface().retrieveInterface(wmsLayer)) {
    35                 boolean useFactor = true;
    3635                if (wmsLayer.images.isEmpty()) {
    3736                    // first time we grab an image for this layer
     
    5251                        // set vectorized commune bounding box by opening the standard web window
    5352                        grabber.getWmsInterface().retrieveCommuneBBox(wmsLayer);
    54                         // if it is the first layer, use the communeBBox as grab bbox (and not divided)
    55                         if (Main.map.mapView.getAllLayers().size() == 1 ) {
    56                             bounds = wmsLayer.getCommuneBBox().toBounds();
    57                             Main.map.mapView.zoomTo(bounds);
    58                             useFactor = false;
    59                         }
    6053                    }
    6154                }
    6255                // grab new images from wms server into active layer
    63                 wmsLayer.grab(grabber, bounds, useFactor);
     56                wmsLayer.grab(grabber, bounds);
    6457            }
    6558        } catch (DuplicateLayerException e) {
Note: See TracChangeset for help on using the changeset viewer.