stroke-z-index works like a charm, thanks!
charles
On Apr 5, 2011, at 2:02 PM, David Winslow wrote:
> Set z-index or stroke-z-index on rules, it's a numeric field that is used to
> sort the rules before outputting to sld. Like most other properties, it can
> be repeated to provide different values for repeated strokes of the same
> fields:
>
> [type='road'] {
> stroke: red, yellow;
> stroke-width: 6, 2;
> stroke-z-index: 0, 10;
> }
>
> Each unique z-index value produces a new FeatureTypeStyle in the SLD.
>
> --
> David Winslow
> OpenGeo - http://opengeo.org/
>
> On Tue, Apr 5, 2011 at 1:52 PM, Charles Galpin <[email protected]> wrote:
> Yes that's pretty interesting.
>
> Ok, I've got one more for you. Even though I am listing my styles in order,
> the generated SLD seems to re-arrange them so that I see interesting overlap
> order - like a weaving effect.
>
> I have something like this, the idea being draw red lines above the green
> ones but sometimes you'll see a red line go under a green line and over the
> next. Is there any way to force the ordering?
>
> [data_type < 4], [data_type > 5]
> {
> stroke-width: 2;
> }
>
> [data_type = 4] {
> stroke-width: 2;
> stroke-dasharray: 2 2;
> }
>
> [congestion_level = 'G'] [data_type < 4],
> [congestion_level = 'G'] [data_type > 5]
> {
> stroke: #008000;
> stroke-linecap: butt;
> stroke-linejoin: miter;
> }
> [congestion_level = 'G'] [data_type = 4]{
> stroke: #008000;
> }
>
> [congestion_level = 'R'] [data_type < 4],
> [congestion_level = 'R'] [data_type > 5]
> {
> stroke: #FF1919;
> stroke-linecap: butt;
> stroke-linejoin: miter;
> }
> [congestion_level = 'R'] [data_type = 4]{
> stroke: #FF1919;
> }
>
> And the generated SLD looks something like
>
> FeatureTypeStyle
> Rule G data_type=4
> Rule R data_type=4
> Rule G data_type < 4, >5
> Rule R data_type < 4, >5
>
> Instead of
>
> FeatureTypeStyle
> Rule G data_type < 4, >5
> Rule G data_type=4
>
> Rule R data_type < 4, >5
> Rule R data_type=4
>
> Thanks,
> charles
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users