Changeset 440


Ignore:
Timestamp:
07-10-16 18:46:05 (3 years ago)
Author:
matthijsln
Message:

maxsize parameter instead of constant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • openwion-common/trunk/src/nl/openwion/wms/WMSUtils.java

    r430 r440  
    4343 
    4444public class WMSUtils { 
    45     private static final int MAXIMGSIZE = 2048; 
    4645 
    47     public static BufferedImage getMapServerTiledPNGImage(String wmsUrl, String layers, Polygon envelope, int pngWidth, Integer pngHeight, StringBuffer log, boolean forceIMKL, boolean avoidIMKLGrays) 
     46    public static BufferedImage getMapServerTiledPNGImage(String wmsUrl, String layers, Polygon envelope, int pngWidth, Integer pngHeight, StringBuffer log, boolean forceIMKL, boolean avoidIMKLGrays, int maxsize) 
    4847        throws IOException, ServiceException { 
    4948        log.append("WMS request voor layer(s) \"" + layers + "\" op WMS \"" + wmsUrl + "\"\n"); 
     
    8685        log.append("WMS HEIGHT: " + pngHeight + "\n"); 
    8786 
    88         WMSTileRequest[][] tiles = WMSRequestSplitter.calculateMaxImgSizeWMSRequests(bbox, pngWidth, pngHeight, MAXIMGSIZE, MAXIMGSIZE); 
     87        WMSTileRequest[][] tiles = WMSRequestSplitter.calculateMaxImgSizeWMSRequests(bbox, pngWidth, pngHeight, maxsize, maxsize); 
    8988 
    9089        log.append("aantal tiles breedte = " + tiles.length + "; hoogte = " + tiles[0].length + "\n"); 
Note: See TracChangeset for help on using the changeset viewer.