How are you telling Geoserver to distinguish between them? Are they all
the same featuretype, and you are using filters in the SLD file... or
something else? (I'm a newbie, I am sure there are lots of ways of doing
things that I haven't heard of yet)
I am looking at a dataset where everything is classified as "paved
road", so I am looking into the same type of problem, but I haven't
started worrying about drawing order yet.
-Arne
Tom (JDi Solutions) wrote:
One further question on this if I may? The technique you described
works great, putting the border colour style first ensures that it is
always rendered first and then partially covered by the coloured
line. There are however quite a few different types of road to render
and they have a clear order of priority but their order in the sld
doesn't seem to affect which gets rendered first, presumably this is
because they are first selected from the table according to their type
and then the renderer just works through the query results and only
uses the order of the sld file when a feature comes up which actually
has 2 rules which apply to it. Is that understanding correct? Is
there anything that can be done to ensure things are rendered in order
of priority?
On 10/2/07, *Tom (JDi Solutions)* <tom.dean@anonymised.com
<mailto:tom.dean@anonymised.com>> wrote:
Thanks guys, really appreciate it, that works a treat. 
On 10/1/07, *Arne Kepp* < ak@anonymised.com
<mailto:ak@anonymised.com>> wrote:
Hi,
you can achieve this by having two overlapping line styles,
the first
one dark and slightly wider than the second. The tiger roads
in the demo
dataset use this technique.
Note that (according to me, not confirmed) this is broken in
1.6beta3 if
your data comes from Postgis. See
http://jira.codehaus.org/browse/GEOS-1362 , which also
includes an SLD
that illustrates how to create the effect.
-Arne
Tom (JDi Solutions) wrote:
> Hi all,
>
> Is it possible to render lines as one colour with a border?
> Specifically I'm working on an .sld for the Open Street Map
data and
> for the roads I want them to show as coloured lines but on
the closer
> zoom levels they also need to have a thin grey line on each side.
> Having looked at the .sld guide it doesn't look like this is
possible
> unless I use an image to render the lines, in which case I
assume I
> would need a cross-section image of the road, i.e. 1 pixel wide 5
> long, grey, red, red, red, grey would give a 3 px wide red
line with
> grey border. Is this the way to go or have I missed the easy
way?
>
> cheers,
>
> Tom
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
> !DSPAM:4038,4700c8f286571961014482!
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
<mailto:Geoserver-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
> !DSPAM:4038,4700c8f286571961014482!
>
!DSPAM:4038,4702071d154165210051143!