Changeset 33279 in osm for applications/editors/josm/plugins/cadastre-fr
- Timestamp:
- 2017-04-26T01:03:00+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java
r32556 r33279 32 32 try { 33 33 if (wmsLayer.grabber.getWmsInterface().retrieveInterface(wmsLayer)) { 34 if ( wmsLayer.getImages().isEmpty()) {34 if (!wmsLayer.hasImages()) { 35 35 // first time we grab an image for this layer 36 36 if (CacheControl.cacheEnabled) { … … 54 54 // grab new images from wms server into active layer 55 55 wmsLayer.grab(bounds); 56 } else if ( wmsLayer.getImages().size() == 0)56 } else if (!wmsLayer.hasImages()) { 57 57 // failed to contact WMS of find this commune. Remove layer if empty. 58 58 Main.getLayerManager().removeLayer(wmsLayer); 59 } 59 60 } catch (DuplicateLayerException e) { 60 61 // we tried to grab onto a duplicated layer (removed) -
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSLayer.java
r32556 r33279 707 707 } 708 708 709 public boolean hasImages() { 710 return images != null && !images.isEmpty(); 711 } 712 709 713 public void addImage(GeorefImage img) { 710 714 imagesLock.lock();
Note:
See TracChangeset
for help on using the changeset viewer.