GeoWebCache

Changes between Version 5 and Version 6 of metatiles

Show
Ignore:
Timestamp:
11/09/09 18:37:22 (10 months ago)
Author:
arneke (IP: 88.163.0.55)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • metatiles

    v5 v6  
    1 A metatile is essentially several tiles combined into one larger one: 
     1= DEPRECATED = 
    22 
    3 [[Image(metatile.png)]] 
     3This document is deprecated, please see http://geowebcache.org/docs/1.2.0 
    44 
    5 The example above shows a 3x3 metatile, covering 9 regular (usually 256px by 256px) tiles. 
    6  
    7 The most significant advantage of metatiling is that you avoid duplicate labeling of features that span several tiles, like roads. The labels are generally printed once for each metatile. You may also achieve better overall performance, because it is cheaper for the WMS backend to generate one large image rather than 9 small ones. The reason for this is that the WMS backend only incurs the overhead associated with one request and only has to scan its resources (Postgis datastore, Shapefiles) once. 
    8  
    9 The disadvantage is that each metatile is larger. This makes it slower to render than any single tile, which can be an issue for areas that have not been seeded.  
    10  
    11 If you go past 3x3 metatiling memory consumption may also become an issue. In general you can estimate memory consumption by determining the total number of pixels and then multiply this number by the color depth 32 bits (4 bytes). A typical 3x3 metatile will therefore require at least (256x256)x(3x3)x(4) = 2359296 bytes = 2304 kbytes = 2.25 mbytes of memory to compute. The real number is often a multiple of this. For instance, in GeoServer the amount of memory is also proportional to the number of featureTypeStyle elements in the style. 
    12  
    13 Note that several backends also support a parameter to indicate that the client is tiling. If you are using metatiling in GeoWebCache you should generally set this to false, to prevent the backend from metatiling the metatiles. For examples, if you use 3x3 metatiling (768x768 pixels), and have tiled=true, then the server may metatile these large tiles, resulting in a 2304x2304 canvas. (Note that GeoServer will ignore the directive for requests that are not 256x256.) 
    14  
    15 Note that you can seed up to a certain zoomlevel and then reduce metatiling, to ensure adequate response times where the map has not been seeded. However, you should make sure that you only do this for complete layers. Switching halfway through a level will result in cut-off labels and similar problems. 
    16