[mapserver-users] SLD and Offset

Yewondwossen Assefa yassefa at dmsolutions.ca
Thu Apr 14 11:51:19 EDT 2011


Maybe using  the PerpendicularOffset of the stroke element would work in 
your case (only availble in sld1.1)? Quick example can be found at 
http://www3.dmsolutions.ca/tmp/sld_line_simple_1.1.0_offset.xml

best regards,


On 14/04/2011 11:05 AM, Kickinger Johann wrote:
> 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.
> 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
>
>        CLASS
>             NAME C_0_0
>             EXPRESSION (([value_los] = 0) && ([linkdirection] = 0))
>             STYLE
>                         COLOR 0 117 0
>                         WIDTH 3
>                         ANTIALIAS TRUE
>                    OFFSET 2 -99
>                 END
>         END
>         CLASS
>             NAME C_0_1
>             EXPRESSION (([value_los] = 0) && ([linkdirection] = 1))
>             STYLE
>                         COLOR 0 117 0
>                         WIDTH 3
>                         ANTIALIAS TRUE
>                    OFFSET -2 -99
>
>
> 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.
> 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.
> 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.
> Thanks for your support/ideas.
> BR,
> Hannes
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: yassefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110414/8113ee42/attachment.html


More information about the mapserver-users mailing list