SV: [mapserver-users] Rendering line crossing iteslf
Niels-Peter Jensen
npj at i-gis.dk
Wed May 11 04:51:05 PDT 2011
Hi Thomas
Thanks for the quick answer.
We cannot make the style work in the mapfile and have to place it in the
symbol file. By the way, we are using Mapserver 5.4.2.
But anyway, I don't think it solves our problem.
We don't have any "bridge" in our line data, it is just a single line
feature that crosses itself.
Regards
Niels-Peter
-----Oprindelig meddelelse-----
Fra: thomas bonfort [mailto:thomas.bonfort at gmail.com]
Sendt: 11. maj 2011 12:14
Til: Niels-Peter Jensen
Cc: mapserver-users at lists.osgeo.org
Emne: Re: [mapserver-users] Rendering line crossing iteslf
An undocumented and "not guaranteed to work in future versions" is to trick
mapserver in not drawing the cached base style for bridge lines. As you are
avoiding the line caching mechanism, you have to tweak the linecaps for the
base style.
CLASS
EXPRESSION ([bridge]=1)
STYLE
END
STYLE
color black
width 5
linecap butt
END
STYLE
color yellow
width 3
linecap round
END
STYLE
color black
width 1
END
END
I haven't tested this recently, so please keep in touch if this solves your
problem or not.
regards,
thomas
On Wed, May 11, 2011 at 11:40, Niels-Peter Jensen <npj at i-gis.dk> wrote:
> Hi users
>
> We have a problem in rendering a route based on a line feature.
>
> When we use the common way to do that, by using two styles, with a
> thick black line that defines an outline, and a thinner defying the
> road center, we will not get the desired result.
>
> But I want to show where routes cross ("bridge" intersection), and not
> as a "normal" intersection, see the attached examples.
>
> As there is no outline definition on linefeatures I can't se how that
> can be done in a simple way.
>
>
> Niels-Peter
> I-GIS
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
More information about the MapServer-users
mailing list