Ticket #1954: WMS Invalidate.patch
| File WMS Invalidate.patch, 2.2 KB (added by , 17 years ago) |
|---|
-
src/wmsplugin/Grabber.java
52 52 g.setColor(Color.BLACK); 53 53 g.drawString(tr("Exception occurred"), 10, height()/2); 54 54 image.image = img; 55 image.flushedResizedCachedInstance(); 55 56 image.failed = true; 56 57 g.setFont(font); 57 58 } -
src/wmsplugin/WMSGrabber.java
55 55 image.min = proj.latlon2eastNorth(b.min); 56 56 image.max = proj.latlon2eastNorth(b.max); 57 57 58 if(image.isVisible(mv)) //don't download, if the image isn't visible already58 if(image.isVisible(mv)) { //don't download, if the image isn't visible already 59 59 image.image = grab(url); 60 image.flushedResizedCachedInstance(); 61 } 60 62 image.downloadingStarted = false; 61 63 } catch(Exception e) { 62 64 throw new Exception(e.getMessage() + "\nImage couldn't be fetched: " + (url != null ? url.toString() : "")); -
src/wmsplugin/WMSLayer.java
171 171 if(!img.paint(g, mv, dx, dy) && !img.downloadingStarted){ 172 172 img.downloadingStarted = true; 173 173 img.image = null; 174 img.flushedResizedCachedInstance(); 174 175 Grabber gr = WMSPlugin.getGrabber(baseURL, XYtoBounds(x,y), Main.main.proj, pixelPerDegree, img, mv, this); 175 176 executor.submit(gr); 176 177 } … … 249 250 for (int y = 0; y < day; ++y) { 250 251 GeorefImage img = images[modulo(x,dax)][modulo(y,day)]; 251 252 img.image = null; 253 img.flushedResizedCachedInstance(); 252 254 img.downloadingStarted = false; 253 255 img.failed = false; 254 256 mv.repaint();
