Project

General

Profile

TileSettings » History » Version 12

Maarten Plieger, 10/17/2017 02:38 PM

1 1 Maarten Plieger
h1. TileSettings - Tiling functionality for high resolution datasets
2 1 Maarten Plieger
3 1 Maarten Plieger
See https://github.com/KNMI/adaguc-datasets/blob/master/adaguc.tiled.xml for example configuration
4 1 Maarten Plieger
5 7 Maarten Plieger
Mandatory settings:
6 7 Maarten Plieger
* tilewidthpx="720 
7 7 Maarten Plieger
* tileheightpx="720" 
8 3 Maarten Plieger
* tilecellsizex="0.0125"
9 6 Maarten Plieger
* tilecellsizey="0.0125"
10 1 Maarten Plieger
* tileprojection="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
11 1 Maarten Plieger
* minlevel="1"
12 1 Maarten Plieger
* maxlevel="4"
13 7 Maarten Plieger
* debug="false"
14 9 Maarten Plieger
* optimizeextent="true" <-- Increases performance of tilecreation with --createtiles command. It will detect which region from the base grid is needed for creating a tile, the result is that only a fraction of the big base netcdf file is read into memory. Optimizeextent will also detect if the region has any data in it, if not a tile will not be created.
15 12 Maarten Plieger
* maxtilesinimage="24" <!-- limit on how many tiles are allowed to appear in a single getmap request or are used during a getfeatureinfo request.
16 7 Maarten Plieger
* tilepath="/data/adaguc-autowms/tiles"
17 7 Maarten Plieger
18 7 Maarten Plieger
Optional settings:
19 7 Maarten Plieger
* left="50" right="180"  bottom="-90" top="90" <-- Note these are optional and when left out they will be calculated automatically.
20 7 Maarten Plieger
* tilemode="avg_rgba" or "rgba" <!-- only useful when using rgba netcdf's, dont use if you have standard byte/short/int/float/double data in your variable
21 7 Maarten Plieger
* threads="1" <!-- Optional, default is "1". Experimental setting to render a GetMap request with multiple threads
22 3 Maarten Plieger
23 5 Maarten Plieger
24 5 Maarten Plieger
<pre>
25 5 Maarten Plieger
# To recreate all tiles, do:
26 10 Maarten Plieger
rm -rf /data/adaguc-autowm/tiles/*
27 5 Maarten Plieger
./adagucserver --updatedb --config /config/tilesconfig.xml --recreate 
28 5 Maarten Plieger
./adagucserver --createtiles --config /config/tilesconfig.xml 
29 5 Maarten Plieger
./adagucserver --updatedb --config /config/tilesconfig.xml
30 5 Maarten Plieger
</pre>
31 5 Maarten Plieger
32 1 Maarten Plieger
Some datasets in CLIPC are in such a high resolution that they cannot be stored in a single file. For example the flooding indicator from CLIPC/PIK is at 25 meter resolution along the coast in Europe. The data is organized in 6000 different NetCDF files, each covering its own area in 600x600 grid cells, which need to be “stitched” together. This can be compared with composing a large panoramic picture from multiple pictures taken along the horizon. The challenge here is to provide interactive visualization at several cartographic projections and zoom levels. 
33 1 Maarten Plieger
34 1 Maarten Plieger
To achieve this, ADAGUC has been extended to allow building image pyramids at several zoom levels on coarser resolutions (see Figure ). For CLIPC 7 different pyramid levels are used for the flooding indicator, the top level consists of three tiles, the bottom level of 6000 tiles. When zooming to a specific distortion of the map, the level with the best matching resolution is used to render the requested image. That means that ADAGUC projects and combines several tiles into a single image suitable for WMS. This type of tiled datasets in ADAGUC behave like any other WMS, e.g. interactive zooming and panning at several cartographic map projections remain possible.For CLIPC the flooding indicator in the cartographic projection lambert equal area is remapped on request to the Mercator projection used in the CLIPC portal.
35 2 Maarten Plieger
36 2 Maarten Plieger
!Adaguc-server-TileSettings-Pyramid.png!