Coverage for gws-app/gws/plugin/mbtiles_layer/__init__.py: 100%

0 statements  

« prev     ^ index     » next       coverage.py v7.16.2, created at 2026-10-05 13:35 +0200

1"""MBTiles layer. 

2 

3Raster layer from an MBTiles file. The file is opened as a GDAL raster and 

4rendered with MapServer by a box grabber; MapServer reprojects the raster to 

5the requested CRS. The CRS of the layer source and, unless configured, the 

6extent of the layer are taken from the file. ``processing`` passes MapServer 

7PROCESSING directives, ``transparentColor`` sets a color that is rendered as 

8transparent. 

9 

10Submodules 

11---------- 

12 

13- ``layer`` - the ``mbtiles`` layer. 

14- ``provider`` - holds the path of the MBTiles file. 

15- ``grabber`` - the box grabber that renders the file with MapServer. 

16 

17Example:: 

18 

19 map.layers+ { 

20 title "TK10" 

21 type "mbtiles" 

22 provider.path "/data/tk10.mbtiles" 

23 display "tile" 

24 transparentColor "#ffffff" 

25 processing ["SCALE=0,240"] 

26 } 

27"""