Skip to content

Commit

Permalink
Using QGIS Server TILED mode
Browse files Browse the repository at this point in the history
https://docs.qgis.org/latest/en/docs/server_manual/services/wms.html#tiled

When working with tiles, symbols at or near the boundary between two tiles may appeared
cut, because they are only present in one of the tile.

Setting `TILED` parameter to `TRUE` in GetMap requests, tell QGIS Server to work in tiled
mode, and to apply the Tile buffer configured in the QGIS project. When TILED is TRUE and
when a non-zero Tile buffer is configured in the QGIS project, features outside the tile
extent are drawn to avoid cut symbols at tile boundaries.
  • Loading branch information
rldhont committed Dec 5, 2023
1 parent 56c1115 commit 9947ffb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assets/src/modules/BaseLayersMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ export default class BaseLayersMap extends olMap {
params: {
LAYERS: baseLayerState.itemState.wmsName,
FORMAT: baseLayerState.layerConfig.imageFormat,
DPI: 96
DPI: 96,
TILED: 'true'
},
})
});
Expand Down Expand Up @@ -333,7 +334,8 @@ export default class BaseLayersMap extends olMap {
LAYERS: node.wmsName,
FORMAT: node.layerConfig.imageFormat,
STYLES: node.wmsSelectedStyleName,
DPI: 96
DPI: 96,
TILED: 'true'
},
})
});
Expand Down
1 change: 1 addition & 0 deletions lizmap/modules/lizmap/lib/Request/WMTSRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ protected function process_gettile()
$wmsParams['width'] = $tileWidth;
$wmsParams['height'] = $tileHeight;
$wmsParams['dpi'] = '96';
$wmsParams['tiled'] = 'true';
if (preg_match('#png#', $Format)) {
$wmsParams['transparent'] = 'true';
}
Expand Down

0 comments on commit 9947ffb

Please sign in to comment.