<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.Shkpostityyli18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FI" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language: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 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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Partials FALSE may help, but based on the screenshot it is possible that print composer is making requests with some overlap.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">Lähettäjä:</span></b><span lang="EN-US"> mapserver-users <mapserver-users-bounces@lists.osgeo.org>
<b>Puolesta </b>Travis Kirstine<br>
<b>Lähetetty:</b> keskiviikko 16. lokakuuta 2019 18.24<br>
<b>Vastaanottaja:</b> Jan Hartmann <j.l.h.hartmann@uva.nl><br>
<b>Kopio:</b> MapServer-users <mapserver-users@lists.osgeo.org><br>
<b>Aihe:</b> Re: [mapserver-users] Doubling of labels on high resolution maps<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal">There are a few options you could add to your label but I would start with<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">MINDISTANCE 200<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">PARTIALS FALSE<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">See<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://mapserver.org/mapfile/label.html">https://mapserver.org/mapfile/label.html</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Wed, 16 Oct 2019 at 10:37, Jan Hartmann <<a href="mailto:j.l.h.hartmann@uva.nl">j.l.h.hartmann@uva.nl</a>> wrote:<o:p></o:p></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 class="MsoNormal" 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 href="https://maps.hisgis.nl/marken_072dpi.png" target="_blank">https://maps.hisgis.nl/marken_072dpi.png</a><br>
<a href="https://maps.hisgis.nl/marken_300dpi.png" target="_blank">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 <br>
<br>
<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>