I have real time traffic data which has values for one link/line in both directions e.g. value 0 (green) in the digitalisation direction and value 3 (red) against the digitalisation direction.<br>At the moment this is done with OFFSET x -99 and works well. I see the link two times with, if available, two different values<br>
<br>       CLASS <br>            NAME C_0_0           <br>            EXPRESSION (([value_los] = 0) &amp;&amp; ([linkdirection] = 0))<br>            STYLE<br>                        COLOR 0 117 0<br>                        WIDTH 3<br>
                        ANTIALIAS TRUE<br>                   OFFSET 2 -99<br>                END<br>        END<br>        CLASS <br>            NAME C_0_1            <br>            EXPRESSION (([value_los] = 0) &amp;&amp; ([linkdirection] = 1))<br>
            STYLE<br>                        COLOR 0 117 0<br>                        WIDTH 3<br>                        ANTIALIAS TRUE<br>                   OFFSET -2 -99<br>                <br><br>Now I wanted to use SLD with UserStyle - the color and width is changeable, but I noticed that the OFFSET was overruled and so I dont see different values for separate directions. I found no parameter in the SLD for the Offset of a line.<br>
So my workaround is SLD with NamedStyle - I copied the Classes and the first are in group1 the last in group2. I switch in the one layer with the name of the group.<br>So my question is - is it possible to use UserStyle SLD with the possibility to set a usefull offset or could the offset in the mapfile could be used even if nothing more is defined in the SLD.<br>
Thanks for your support/ideas.<br>BR,<br>Hannes<br>