Changeset 395

Show
Ignore:
Timestamp:
09/09/08 16:19:47 (4 months ago)
Author:
arneke
Message:

Minor KML tweaks, configuration file update

Location:
trunk/geowebcache/src/main
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/geowebcache/src/main/java/org/geowebcache/layer/GridCalculator.java

    r391 r395  
    400400        } 
    401401         
    402         //TODO fix negative number to return more than one top tile 
     402        //TODO fix negative number to return more than one top tile,  
     403        // give -1 for z, but then -{x} , -{y} 
    403404         
    404405        // Exception for EPSG:4326, which can zoom out to two tiles 
    405         if (gridX == 2 && gridY == 1) { 
     406        if (gridX == 2 && gridY == 1 && boundsGridLevels[0][0] != boundsGridLevels[0][2] ) { 
    406407            zoomedOutGridLoc = new int[3]; 
    407408            zoomedOutGridLoc[0] = -1; 
  • trunk/geowebcache/src/main/java/org/geowebcache/layer/wms/WMSHttpHelper.java

    r354 r395  
    177177            String responseMime = wmsBackendCon.getContentType(); 
    178178            String requestMime = wmsparams.getFormat(); 
    179             if (responseMime != null 
     179            if (responseCode != 204 
     180                    && responseMime != null 
    180181                    && ! mimeStringCheck(requestMime,responseMime)) { 
    181182                String message = null; 
  • trunk/geowebcache/src/main/java/org/geowebcache/service/kml/KMLService.java

    r371 r395  
    2727import org.apache.commons.logging.LogFactory; 
    2828import org.geowebcache.GeoWebCacheException; 
     29import org.geowebcache.layer.OutOfBoundsException; 
    2930import org.geowebcache.layer.SRS; 
    3031import org.geowebcache.layer.TileLayer; 
     
    350351            try { 
    351352                tile.setWrapperMimeType(null); 
    352                 tileLayer.getTile(tile); 
     353                try {  
     354                    tileLayer.getTile(tile); 
     355                } catch (OutOfBoundsException oobe) { 
     356                    log.error("Out of bounds: " + Arrays.toString(tile.getTileIndex())  
     357                            + " should never habe been linked to."); 
     358                    throw oobe; 
     359                } 
    353360                tile.setWrapperMimeType(XMLMime.kmz); 
    354361            } catch (IOException ioe) { 
  • trunk/geowebcache/src/main/resources/geowebcache.xml

    r384 r395  
    6969  </grids> 
    7070  <wmsUrl> 
    71     <string>http://sigma.openplans.org:80/geoserver/wms</string> 
     71    <string>http://sigma.openplans.org/geoserver/wms</string> 
    7272  </wmsUrl> 
    7373  <wmsLayers>topp:states</wmsLayers> 
     
    140140  --> 
    141141  <wmsUrl> 
    142     <string>http://sigma.openplans.org:80/geoserver/wms</string> 
     142    <string>http://sigma.openplans.org/geoserver/wms</string> 
    143143    <string>http://atlas.openplans.org:8080/geoserver/wms</string> 
    144144  </wmsUrl>