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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: [email protected]
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users