<html>
  <head>
    <style type="text/css">
      <!--
        body { font-variant: normal; margin-bottom: 1px; margin-top: 4px; line-height: normal; margin-left: 4px; margin-right: 4px }
        p { margin-bottom: 0; margin-top: 0 }
      -->
    </style>
    
  </head>
  <body>
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Comic Sans MS">All&#44;</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Comic Sans MS">Wondering&#44; would this work for INSIDE/OUTSIDE situations with regard to polygon drawing&#63; &nbsp;Or is the left/right sides of the line strictly relying on the from/to aspects of how the polygon was drawn &#40;clockwise/counterclockwise&#41; &nbsp;This would be handy for off-setting to &#40;ONLY&#41; the inside of a polygon for example.</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Comic Sans MS">Thanks</font>    </p>
<br>      
    <p style="margin-bottom: 0; margin-top: 0">
      <font size="3" face="Comic Sans MS">bobb</font>    </p>
<br>      <br>
    <p style="margin-bottom: 0; margin-top: 0">
      <br>
      <br>
      &gt;&gt;&gt; Wim Vanbelle &lt;wimvanbelle@gmail.com&gt; wrote:<br>    </p>
    <div style="padding-left: 7px; margin-bottom: 0; background-color: #f3f3f3; border-left: solid 1px #050505; margin-top: 0; margin-right: 0; margin-left: 15px">
      <p style="margin-bottom: 0; margin-top: 0">
        Thank you very much everyone. And especially Thomas. That was indeed what I was looking for. You saved me a lot of work&#33;<br http-equiv="Content-Type" content="text/html; charset=UTF-8"><br>Much appreciated.<br><br>      </p>
      <div class="gmail_quote">
        <p style="margin-bottom: 0; margin-top: 0">
          On 12 August 2010 17:50&#44; Fawcett&#44; David &#40;MPCA&#41;        </p>
        <div dir="ltr">
          <p style="margin-bottom: 0; margin-top: 0">
            &lt;<a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</a>&gt;          </p>
        </div>
        <p style="margin-bottom: 0; margin-top: 0">
          wrote:<br>        </p>
        <blockquote class="gmail_quote" style="padding-left: 0; margin-bottom: 0pt; border-left: 1px solid rgb(204, 204, 204); margin-top: 0pt; margin-right: 0pt; margin-left: 0">
          <p style="margin-bottom: 0; margin-top: 0">
            Thanks Thomas<br><br>That looks nice in my test example.<br><font color="#888888"><br style="color: #888888">David.<br style="color: #888888"></font>          </p>
          <div>
            <div>
<br>                
            </div>
            <div class="h5">
              <p style="margin-bottom: 0; margin-top: 0">
                <br>
                -----Original Message-----<br>From: thomas bonfort &#91;mailto:<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>&#93;<br>Sent: Thursday&#44; August 12&#44; 2010 10:45 AM<br>To: Fawcett&#44; David &#40;MPCA&#41;<br>Cc: Wim Vanbelle&#59; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>Subject: Re: &#91;mapserver-users&#93; Offset values from database<br><br>the -99 is a special offset value that shifts the line as you are looking for.<br><br>style<br>color 255 0 0<br>offset -2 -99<br>width 2<br>end<br>style<br>color 0 255 0<br>offset 2 -99<br>width 2<br>end<br><br><br>not perfect as there are artifacts on sharp angles&#44; but worth a try.<br><br>regards&#44;<br>thomas<br><br>On Thu&#44; Aug 12&#44; 2010 at 16:56&#44; Fawcett&#44; David &#40;MPCA&#41;<br>&lt;<a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</a>&gt; wrote:<br>&gt; Wim&#44;<br>&gt;<br>&gt;<br>&gt;<br>&gt; You can do these offsets in pixel values at a class level&#44; just not a<br>&gt; feature level. This pretty much does what you are describing&#44; although it<br>&gt; gets a little funky when the lines are diagonal and not straight.<br>&gt;<br>&gt;<br>&gt;<br>&gt; CLASS<br>&gt;<br>&gt; STYLE<br>&gt;<br>&gt; COLOR 0 0 0<br>&gt;<br>&gt; WIDTH 2<br>&gt;<br>&gt; END<br>&gt;<br>&gt; STYLE<br>&gt;<br>&gt; COLOR 255 0 0<br>&gt;<br>&gt; WIDTH 2<br>&gt;<br>&gt; OFFSET 10 10<br>&gt;<br>&gt; END<br>&gt;<br>&gt; STYLE<br>&gt;<br>&gt; COLOR 0 255 0<br>&gt;<br>&gt; WIDTH 2<br>&gt;<br>&gt; OFFSET -10 -10<br>&gt;<br>&gt; END<br>&gt;<br>&gt;<br>&gt;<br>&gt; END<br>&gt;<br>&gt;<br>&gt;<br>&gt; David.<br>&gt;<br>&gt;<br>&gt;<br>&gt; From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><br>&gt; &#91;mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&#93; On Behalf Of Wim Vanbelle<br>&gt; Sent: Thursday&#44; August 12&#44; 2010 9:32 AM<br>&gt; To: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>&gt; Subject: Re: &#91;mapserver-users&#93; Offset values from database<br>&gt;<br>&gt;<br>&gt;<br>&gt; Maybe this pic helps elaborate on what i&#39;m trying to accomplish:<br>&gt; <a target="_blank" href="http://fileshare.myroute.be/exchange/asymmetriclinedrawing.png">http://fileshare.myroute.be/exchange/asymmetriclinedrawing.png</a><br>&gt; It should be noted that the distance between the 2 &#40;new&#41; lines&#44; should be a<br>&gt; fixed value over the zoomlevels. It must not be the case that at the<br>&gt; furthest zoomlevel the lines are further apart.<br>&gt;<br>&gt; I&#39;ve looked all over for this&#44; but never really found a proper solution. I<br>&gt; tried cartographic symbol drawing&#44; but it only draws on the same side every<br>&gt; time. Maybe I&#39;m just doing it wrong :&#41;.<br>&gt;<br>&gt; On 12 August 2010 16:28&#44; Wim Vanbelle &lt;<a href="mailto:wimvanbelle@gmail.com">wimvanbelle@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; Hello&#44;<br>&gt;<br>&gt; thanks for your feedback.<br>&gt;<br>&gt; The issue with this&#44; is that the underlying linestrings &#40;the 2 that would<br>&gt; lie on top of eachother&#41;&#44; have different colors :&#40;.<br>&gt;<br>&gt; So they have to be moved apart from one another. I have not found a way to<br>&gt; do this with asymmetric line drawing either&#44; as it will always offset to the<br>&gt; same side.<br>&gt;<br>&gt; This is why i would need the offset value to be configurable in the<br>&gt; database. I could select a different pixel offset for each line and they<br>&gt; would always appear next to eachtoher &#40;no matter what zoomlevel&#41;.<br>&gt;<br>&gt; I can elaborate on the problem more if I am a little too confusing &#33;<br>&gt;<br>&gt; On 12 August 2010 16:20&#44; Cristiano Sumariva &lt;<a href="mailto:sumariva@gmail.com">sumariva@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; If it is a display problem why not try create some special symbology to<br>&gt; overlap one line with another using different symbol strokes. So the user<br>&gt; will se that are 2 lines overlayed.<br>&gt;<br>&gt; 2010/8/12 Wim Vanbelle &lt;<a href="mailto:wimvanbelle@gmail.com">wimvanbelle@gmail.com</a>&gt;<br>&gt;<br>&gt; Hi David&#44;<br>&gt;<br>&gt; I read that documentation before though. I was hoping it just hadn&#39;t been<br>&gt; updated... Is this possibly a feature for 6.0 &#63;<br>&gt;<br>&gt; Are there any other ways how one could offset a feature in pixels&#44; rather<br>&gt; than in lat/long coords&#63;<br>&gt;<br>&gt; Maybe I should elaborate on the original problem a little. Consider 2 line<br>&gt; segments that lie above one another. The general idea is to &#39;offset&#39; them a<br>&gt; given x &#44; y value&#44; so they will both display next to one another&#44; rather<br>&gt; than on top of eachother.<br>&gt;<br>&gt; If you would however perform this code simply on lat/long values&#44; it would<br>&gt; imply&#44; that when scaling your map at the most detailed zoom level&#44; the lines<br>&gt; would lie very far apart&#44; and when zoomed out&#44; they would appear to lie on<br>&gt; top of eachother.<br>&gt;<br>&gt; I find it hard to believe that I would need to pre calculate all the data in<br>&gt; order to obtain geometry objects for each zoom level.<br>&gt;<br>&gt; Maybe some veterans have some good insight in this :&#41;.<br>&gt;<br>&gt;<br>&gt;<br>&gt; On 12 August 2010 15:26&#44; Fawcett&#44; David &#40;MPCA&#41; &lt;<a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</a>&gt;<br>&gt; wrote:<br>&gt;<br>&gt; Wim&#44;<br>&gt;<br>&gt;<br>&gt;<br>&gt; If you don&#8217;t want me to tell you&#44; you will likely want to look at the<br>&gt; mapfile documentation at: <a target="_blank" href="http://mapserver.org/mapfile/style.html">http://mapserver.org/mapfile/style.html</a><br>&gt;<br>&gt;<br>&gt;<br>&gt; &#91;Spoiler Alert&#93;<br>&gt;<br>&gt; You can&#8217;t use values from an attribute table to set the value of this<br>&gt; property<br>&gt;<br>&gt; &#91;/Spoiler Alert&#93;<br>&gt;<br>&gt;<br>&gt;<br>&gt; David.<br>&gt;<br>&gt; From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><br>&gt; &#91;mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&#93; On Behalf Of Wim Vanbelle<br>&gt; Sent: Thursday&#44; August 12&#44; 2010 5:48 AM<br>&gt;<br>&gt; To: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>&gt;<br>&gt; Subject: &#91;mapserver-users&#93; Offset values from database<br>&gt;<br>&gt;<br>&gt;<br>&gt; Hi&#44;<br>&gt;<br>&gt; I&#39;m trying to load offset X&#44; Y data from the postgis database.<br>&gt;<br>&gt; Each feature has an offset value defined there.<br>&gt;<br>&gt; My mapfile &#40;relevant part&#41; looks like this:<br>&gt;<br>&gt; In the layer:<br>&gt; DATA &quot;geom_mercator from map_links using<br>&gt; unique Id using SRID&#61;900913&quot;<br>&gt;<br>&gt; STYLE<br>&gt; WIDTH 6<br>&gt; COLOR 0 255 0<br>&gt; ANTIALIAS TRUE<br>&gt; ANGLE AUTO<br>&gt; OFFSET &#91;offsetX&#93; &#91;offsetY&#93;<br>&gt; END<br>&gt;<br>&gt; Please don&#39;t tell me the offsetX&#44; Y values cannot be read from the database.<br>&gt; That would be a huge issue for me.<br>&gt;<br>&gt; Thank you for your time.<br>&gt;<br>&gt; Best regards<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; mapserver-users mailing list<br>&gt;<br>&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>&gt;<br>&gt; <a target="_blank" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; mapserver-users mailing list<br>&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>&gt; <a target="_blank" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>&gt;<br>&gt;<br><br>              </p>
            </div>
          </div>
        </blockquote>
      </div>
      <p style="margin-bottom: 0; margin-top: 0">
        <br>
      </p>
    </div>
  </body>
</html>