<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@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";
mso-fareast-language:EN-US;}
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;}
span.EmailStyle17
{mso-style-type:personal-compose;
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 70.85pt 70.85pt 70.85pt;}
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="FR-CH" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi list,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB">I'm trying to render a road given a certain width in meters.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">To achieve that, I did use SIZEUNITS METERS in the LAYER definition.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I'm using this layer via WMS in QGIS. At small scales (1:10'000), this is working great, the roads is well-sized regarding its real width, but as soon as I zoom in and have a larger scale then approximately 1:5'000, then
this is not working anymore and the line width stays constant the more I zoom in.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I'm using MapServer 6.0.3. I did partially copy the mapfile content hereunder.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I think that I tried almost every possible parameter combination (like using MINSIZE, MAXSIZE, MINWIDTH, and so on), but nothing seems to work…<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Did anyone ever encounter that issue ? Am I doing sometime wrong ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Michael<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">MAP<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> NAME "… "<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> DEFRESOLUTION 96<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> EXTENT 400000 100000 800000 300000<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> IMAGETYPE "png"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> MAXSIZE 5120<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> RESOLUTION 96<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> STATUS ON<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> TRANSPARENT TRUE<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> UNITS METERS<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">LAYER<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> NAME "…."<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> TYPE LINE<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> METADATA<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> "wms_srs" "EPSG:21781"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> "wms_title" "…."<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> END<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> STATUS ON<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> CONNECTIONTYPE POSTGIS<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> CONNECTION "…."<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> PROCESSING "CLOSE_CONNECTION=DEFER"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> DATA "geom from …. using unique idobj using srid=21781"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> TEMPLATE "foo"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> PROJECTION<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> "init=epsg:21781"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> END<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> CLASSITEM "objektart"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> SIZEUNITS METERS<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> UNITS METERS<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> SYMBOLSCALEDENOM 1000<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> CLASS<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> NAME "Road"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> EXPRESSION "Road"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> STYLE<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> COLOR 255 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> WIDTH 40<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> END<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> END <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> END<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">END<o:p></o:p></span></p>
</div>
</body>
</html>