<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-html-editor-font-wrapper="true" style="font-family: arial, sans-serif; font-size: 13px;">Hi,<br><br>The best way is most likely to set up a WMTS service with mapcache.<br>It handles meta tiling in a more proper way.<br><br>There are good examples in the mapproxy documentation how to do labels in mapserver. <br><a href="https://mapproxy.org/docs/nightly/labeling.html">https://mapproxy.org/docs/nightly/labeling.html</a><br>Mapproxy is anotther good alternative instead of mapcache.<br><br>Be sure to specify "labelcache_map_edge_buffer" "-10" in the mapfile MAP-WEB data section.<br><br>You can still run WMS requests from QGIS towards mapcache if You have enabled that in the mapcache config.<br><br>/Lars S.<br><br><br>17 oktober 2019 kl. 16:04, "Jan Hartmann" <<a target="_blank" tabindex="-1" href="mailto:j.l.h.hartmann@uva.nl?to=%22Jan%20Hartmann%22%20<j.l.h.hartmann@uva.nl>">j.l.h.hartmann@uva.nl</a>> skrev:<br> <blockquote><div><div style="color: #000000;background-color: #FFFFFF">No, neither maxsize nor partials works. I guess that's just the way QGIS requests large WMS-images.<br><br>There is a "tile_metatile_level" configuration directive that should solve this problem:<br><br><a rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="https://mapserver.org/output/tile_mode.html">https://mapserver.org/output/tile_mode.html</a><br><br>but it does not seem to work for WMS layers.<br><br>So I used the underlying PostGIS layer in QGIS, and that works OK, of course. Not sure if this is a bug in MapServer, though.<br><br>Thanks for your help,<br><br>Jan<br> <div>On 10/16/2019 5:55 PM, Rahkonen Jukka (MML) wrote:</div> <blockquote type="cite" cite="mid:8322a18c6a834ff3addf1bc9bae56637@C119S212VM042.msvyvi.vaha.local"><div> <p><span style="mso-fareast-language: EN-US">Hi,</span></p> <p><span style="mso-fareast-language: EN-US" lang="EN-US">Print composer is probably making tiled requests from WMS. That is compulsory for any bigger maps because the default maxsize on the Mapserver side is 2048x2048 pixels <a moz-do-not-send="true" rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="https://mapserver.org/uk/mapfile/map.html">https://mapserver.org/uk/mapfile/map.html</a>. It is easy to increase the maxsize but I do not know if print composer as a client can be aware of that.</span></p> <p><span style="mso-fareast-language: EN-US" lang="EN-US">Partials FALSE may help, but based on the screenshot it is possible that print composer is making requests with some overlap. </span></p> <p><span style="mso-fareast-language: EN-US" lang="EN-US">-Jukka Rahkonen-</span></p> <p><b><span lang="EN-US">Lähettäjä:</span></b><span lang="EN-US"> mapserver-users <a rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="mailto:mapserver-users-bounces@lists.osgeo.org"><mapserver-users-bounces@lists.osgeo.org></a> <b>Puolesta </b>Travis Kirstine<br><b>Lähetetty:</b> keskiviikko 16. lokakuuta 2019 18.24<br><b>Vastaanottaja:</b> Jan Hartmann <a rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="mailto:j.l.h.hartmann@uva.nl"><j.l.h.hartmann@uva.nl></a><br><b>Kopio:</b> MapServer-users <a rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="mailto:mapserver-users@lists.osgeo.org"><mapserver-users@lists.osgeo.org></a><br><b>Aihe:</b> Re: [mapserver-users] Doubling of labels on high resolution maps</span></p> <div> <div><p>There are a few options you could add to your label but I would start with</p></div> <div></div> <div><p>MINDISTANCE 200</p></div> <div><p>PARTIALS FALSE</p></div> <div></div> <div><p>See</p></div> <div><p><a moz-do-not-send="true" rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="https://mapserver.org/mapfile/label.html">https://mapserver.org/mapfile/label.html</a></p></div> <div></div> <div></div> </div> <div> <div><p>On Wed, 16 Oct 2019 at 10:37, Jan Hartmann <<a moz-do-not-send="true" rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="mailto:j.l.h.hartmann@uva.nl">j.l.h.hartmann@uva.nl</a>> wrote:</p></div> <blockquote style="border: none;border-left: solid #CCCCCC 1.0pt;padding: 0cm 0cm 0cm 6.0pt;margin-left: 4.8pt;margin-right: 0cm"> <div><div><p style="margin-bottom: 12.0pt"><span style='font-size: 10.5pt;font-family: "Courier New"'>Hi,<br><br>I'm trying to generate high resolution print maps with QGIS, based on a MapServer WMS layer. When displayed in the regular QGIS application with 72dpi, all looks fine. When using the Print Composer based on the same Mapfile, but with 300dpi, some labels are duplicated (not all). Some duplicates are clipped. The two versions can be seen here:<br><br><a target="_blank" moz-do-not-send="true" rel="external nofollow noopener noreferrer" tabindex="-1" href="https://maps.hisgis.nl/marken_072dpi.png">https://maps.hisgis.nl/marken_072dpi.png</a><br><a target="_blank" moz-do-not-send="true" rel="external nofollow noopener noreferrer" tabindex="-1" href="https://maps.hisgis.nl/marken_300dpi.png">https://maps.hisgis.nl/marken_300dpi.png</a><br><br>Below the Mapfile. Any idea what goes wrong here?<br><br>Jan<br><br>map<br>name Markegrenzen<br><br>web<br>metadata<br>"wms_title" "Markegrenzen"<br>"wms_srs" "EPSG:28992 EPSG:3857"<br>"wms_extent" "13000 301000 279000 620000"<br>"wms_enable_request" "*"<br>end<br>end<br><br>extent 13000 301000 279000 620000<br>units meters<br>size 400 400<br>resolution 300<br>defresolution 72<br><br><br>projection<br>"init=epsg:28992"<br>end<br><br>z<br>layer<br>name Markegrenzen<br>status on<br>type polygon<br>connectiontype postgis<br>connection "dbname=ov options='-c search_path=horigheid,public'"<br>data " the_geom from (<br>select gid,the_geom,naam from markegrenzen<br>) as foo using unique gid using srid=28992<br>"<br>labelitem "naam"<br>class<br>style<br>outlinecolor 255 0 0<br>width 1<br>end<br>label<br>color 255 0 0<br>size 4<br>end<br>end<br>end<br>end </span><br> </p></div></div> <p>_______________________________________________<br>mapserver-users mailing list<br><a target="_blank" moz-do-not-send="true" rel="external nofollow noopener noreferrer" tabindex="-1" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><a target="_blank" moz-do-not-send="true" rel="external nofollow noopener noreferrer" tabindex="-1" href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></p> </blockquote> </div> </div></blockquote> </div></div></blockquote> <br><br><signature></signature> </div></body></html>