thanks Thomas,<br><br>well, actually, in my case this particular layer was created as line data, purely for cartographic purposes (it&#39;s not a polygon dataset being drawn as type LINE) so I thought the &quot;duplicate edges&quot; issue would not apply. <br>
<br>but I&#39;ll go back to the dashed symbol experiments to see if there are other ways to minimize the effect.<br><br>Tanya<br><br><br><div class="gmail_quote">On Wed, Apr 2, 2008 at 11:45 PM, thomas bonfort &lt;<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">tanya,<br>
different symptoms but same &quot;problem&quot; here. even if your mapserver<br>
layer is of type &quot;LINE&quot;, your counties data is polygonal data and<br>
therefore has duplicate edges, and mapserver will happilly draw these<br>
edges twice. depending on how the linestrings of the polygon are<br>
stored, the pattern of your dashes, the scale of your drawing, and a<br>
small dose of black magic, dashes will show up well or not ;)<br>
note that this isn&#39;t agg specific, the gd renderer has the same<br>
limitations when using dashes.<br>
<div class="Ih2E3d"><br>
--<br>
Thomas Bonfort<br>
<br>
Camptocamp France SAS<br>
Tel : +33 (0)4 79 26 57 97<br>
thomas dot bonfort at camptocamp dot com<br>
<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br>
<br>
</div><div><div></div><div class="Wj3C7c">On undefined, TC Haddad &lt;<a href="mailto:tchaddad@gmail.com">tchaddad@gmail.com</a>&gt; wrote:<br>
&gt; hi thomas<br>
&gt;<br>
&gt; my situation might be similar to Duarte: i&#39;m also drawing counties, but in<br>
&gt; my case I am drawing a line layer, not a polygon layer.<br>
&gt;<br>
&gt; my preference was for drawing the lines with a dashed symbol, but at certain<br>
&gt; scales (usually more zoomed out) the dashed lines will occasionally fail -<br>
&gt; and would draw as solid. the pattern of failure seems really hard to predict<br>
&gt; .... see the red circled area in the attached image.<br>
&gt;<br>
&gt; this effect remained the same no matter how large the gap between my dashes<br>
&gt; were, or how short my dash lengths (in this example basically 1 pixel dots,<br>
&gt; and there is still a failure to solid line). any ideas on a work around? -<br>
&gt; perhaps if I generalized the layer ?<br>
&gt;<br>
&gt; tanya<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Apr 2, 2008 at 2:03 PM, thomas bonfort &lt;<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; &gt; hi,<br>
&gt; &gt; it&#39;s one of the drawbacks of antialiasing in general, not a mapserver<br>
&gt; &gt; specific issue. an analogy could be found when drawing on paper with a<br>
&gt; &gt; felt-tip pen: if you pass twice on the same line the resulting effect<br>
&gt; &gt; is that the paper is twice as saturated in ink and the line appears<br>
&gt; &gt; thicker. this doesn&#39;t happen when drawing aliased bresenham lines as<br>
&gt; &gt; with the gd renderer, as multiple passes on a given line produces the<br>
&gt; &gt; same result as a single pass.<br>
&gt; &gt; hth,<br>
&gt; &gt; thomas<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Wed, Apr 2, 2008 at 9:51 PM, DNC &lt;<a href="mailto:dncarreira@gmail.com">dncarreira@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp;Thomas,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp;I&#39;m drawing administrative boundaries like counties. The data came from<br>
&gt; a<br>
&gt; &gt; &gt; &nbsp;polygon shapefile and converted to PostGIS. The boundaries are<br>
&gt; topologically<br>
&gt; &gt; &gt; &nbsp;correct in that shared boundaries are completely coincident and not<br>
&gt; &gt; &gt; &nbsp;adjacent. I have never seen these polygons being drawn like you<br>
&gt; describe. It<br>
&gt; &gt; &gt; &nbsp;didn&#39;t even occurred to me that MapServer would have any difficulties<br>
&gt; &gt; &gt; &nbsp;drawing this kind of data... How do you publish for instance the US<br>
&gt; states?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp;Thanks,<br>
&gt; &gt; &gt; &nbsp;Duarte<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp;tbonfort wrote:<br>
&gt; &gt; &gt; &nbsp;&gt;<br>
&gt; &gt; &gt; &nbsp;&gt; hi,<br>
&gt; &gt; &gt; &nbsp;&gt; you&#39;re probably drawing polygons with adjacent borders right?<br>
&gt; &gt; &gt; &nbsp;&gt; in this case, each line except the outer ones is drawn twice, and<br>
&gt; thus<br>
&gt; &gt; &gt; &nbsp;&gt; its final width is larger than what is requested.<br>
&gt; &gt; &gt; &nbsp;&gt; I don&#39;t think there&#39;s much you can do about it except preprocess your<br>
&gt; &gt; &gt; &nbsp;&gt; data to transform it into a line layer with no duplicates.<br>
&gt; &gt; &gt; &nbsp;&gt;<br>
&gt; &gt; &gt; &nbsp;&gt; cheers,<br>
&gt; &gt; &gt; &nbsp;&gt; --<br>
&gt; &gt; &gt; &nbsp;&gt; Thomas Bonfort<br>
&gt; &gt; &gt; &nbsp;&gt;<br>
&gt; &gt; &gt; &nbsp;&gt; Camptocamp France SAS<br>
&gt; &gt; &gt; &nbsp;&gt; Tel : +33 (0)4 79 26 57 97<br>
&gt; &gt; &gt; &nbsp;&gt; thomas dot bonfort at camptocamp dot com<br>
&gt; &gt; &gt; &nbsp;&gt; <a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br>
&gt; &gt; &gt; &nbsp;&gt;<br>
&gt; &gt; &gt; &nbsp;&gt; On Sat, Mar 29, 2008 at 1:22 PM, DNC &lt;<a href="mailto:dncarreira@gmail.com">dncarreira@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt; &nbsp;&gt;&gt;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;Hi.<br>
&gt; &gt; &gt; &nbsp;&gt;&gt;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;I&#39;m having trouble getting thin lines to draw. The thinnest line I<br>
&gt; get<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; seems<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;to be 2 pixels wide at least. Using GD the lines are indeed 1<br>
&gt; pixel.<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; Anyone<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;can point out why this happens?<br>
&gt; &gt; &gt; &nbsp;&gt;&gt;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;Some sections from the map file:<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;OUTPUTFORMAT<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; NAME &#39;AGG_Q&#39;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; DRIVER AGG/PNG<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; MIMETYPE &quot;image/png&quot;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; IMAGEMODE RGB<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; FORMATOPTION &quot;QUANTIZE_FORCE=ON&quot;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; FORMATOPTION &quot;QUANTIZE_DITHER=OFF&quot;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; FORMATOPTION &quot;QUANTIZE_COLORS=256&quot;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;END<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; LAYER<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; NAME &#39;test&#39;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; GROUP &quot;test group&quot;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; TYPE POLYGON<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; #MINSCALE 250000<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; CONNECTIONTYPE postgis<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; CONNECTION &#39;bla&#39;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; PROCESSING &quot;CLOSE_CONNECTION=DEFER&quot;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; DATA &#39;the_geom from table using unique gid&#39;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; #FILTER &#39;&#39;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; METADATA<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; &nbsp; &#39;wms_title&#39; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#39;some layer&#39;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; &nbsp; &quot;ows_abstract&quot; &nbsp; &nbsp;&quot;some text&quot;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; &nbsp; &#39;wms_srs&#39; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#39;EPSG:27492&#39;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; &nbsp; &quot;wms_opaque&quot; &nbsp; &nbsp;&quot;0&quot;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; &nbsp; &quot;wms_group_title&quot; &quot;group title&quot;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; &nbsp; &quot;wms_group_abstract&quot; &quot;group text&quot;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; END<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; STATUS ON<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; TRANSPARENCY 100<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; PROJECTION<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; &#39;init=epsg:27492&#39;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; END<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; EXTENT -23893.143277 -173568.018533 62541.864515 -70038.622014<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; MINSCALE 1<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;# &nbsp; &nbsp;MAXSCALE 100000<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; # data is queryable<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; DUMP TRUE<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; HEADER &nbsp; /ms_ogc_workshop/templates/rivers_query_header.html<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; TEMPLATE /ms_ogc_workshop/templates/rivers_query_body.html<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; # fuzziness for querying<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; TOLERANCE 5<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; CLASS<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;NAME &#39;outlines&#39;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;STYLE<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WIDTH 1<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OUTLINECOLOR 232 232 232<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;END<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; &nbsp; END<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp; END<br>
&gt; &gt; &gt; &nbsp;&gt;&gt;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;Regards,<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;Duarte<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;--<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;View this message in context:<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; <a href="http://www.nabble.com/agg-and-line-widths-tp16369480p16369480.html" target="_blank">http://www.nabble.com/agg-and-line-widths-tp16369480p16369480.html</a><br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
&gt; &gt; &gt; &nbsp;&gt;&gt;<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;_______________________________________________<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;mapserver-users mailing list<br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; &gt; &gt; &nbsp;&gt;&gt; &nbsp;<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt; &gt; &gt; &nbsp;&gt;&gt;<br>
&gt; &gt; &gt; &nbsp;&gt; _______________________________________________<br>
&gt; &gt; &gt; &nbsp;&gt; mapserver-users mailing list<br>
&gt; &gt; &gt; &nbsp;&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; &gt; &gt; &nbsp;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt; &gt; &gt; &nbsp;&gt;<br>
&gt; &gt; &gt; &nbsp;&gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp;--<br>
&gt; &gt; &gt; &nbsp;View this message in context:<br>
&gt; <a href="http://www.nabble.com/agg-and-line-widths-tp16369480p16450017.html" target="_blank">http://www.nabble.com/agg-and-line-widths-tp16369480p16450017.html</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp;_______________________________________________<br>
&gt; &gt; &gt; &nbsp;mapserver-users mailing list<br>
&gt; &gt; &gt; &nbsp;<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; &gt; &gt; &nbsp;<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; mapserver-users mailing list<br>
&gt; &gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; &gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>