[Geoserver-users] SLDs - Line overlap to create outline effect

Hi,

I am looking at a sample SLD that creates an outline effect by rendering
a white line on top of a dark line. I have seen this SLD work, but when
I try to do this on Geoserver 1.6 beta 3 the dark line ends up on top of
the white one.

Below is a sample, if I comment out the dark part the white is rendered
as expected.

<!-- 5000 - 25000 -->
    <FeatureTypeStyle>
        <Rule>
            <MinScaleDenominator>5000</MinScaleDenominator>
            <MaxScaleDenominator>25000</MaxScaleDenominator>
            <LineSymbolizer>
                <Stroke>
                    <CssParameter name="stroke">#806600</CssParameter>
                    <CssParameter name="stroke-width">6</CssParameter>
                </Stroke>
            </LineSymbolizer>
        </Rule>
    </FeatureTypeStyle>
    <FeatureTypeStyle>
        <Rule>
            <MinScaleDenominator>5000</MinScaleDenominator>
            <MaxScaleDenominator>25000</MaxScaleDenominator>
            <LineSymbolizer>
                <Stroke>
                    <CssParameter name="stroke">#FFFFFF</CssParameter>
                    <CssParameter name="stroke-width">5</CssParameter>
                </Stroke>
            </LineSymbolizer>
        </Rule>
    </FeatureTypeStyle>

Any ideas?

Cheers,
-Arne

Hmmm... This is the second time I've heard this bug report, and it's definitely a bit odd. I had one idea, but didn't hear back. Are you running in java 6? If so could you try running in java 5? If that works I may have a bit of an idea where to work. If not then Andrea will have to help, I guess something might have changed with his speed improvements.

Arne Kepp wrote:

Hi,

I am looking at a sample SLD that creates an outline effect by rendering
a white line on top of a dark line. I have seen this SLD work, but when
I try to do this on Geoserver 1.6 beta 3 the dark line ends up on top of
the white one.

Below is a sample, if I comment out the dark part the white is rendered
as expected.

<!-- 5000 - 25000 -->
    <FeatureTypeStyle>
        <Rule>
            <MinScaleDenominator>5000</MinScaleDenominator>
            <MaxScaleDenominator>25000</MaxScaleDenominator>
            <LineSymbolizer>
                <Stroke>
                    <CssParameter name="stroke">#806600</CssParameter>
                    <CssParameter name="stroke-width">6</CssParameter>
                </Stroke>
            </LineSymbolizer>
        </Rule> </FeatureTypeStyle>
    <FeatureTypeStyle>
        <Rule>
            <MinScaleDenominator>5000</MinScaleDenominator>
            <MaxScaleDenominator>25000</MaxScaleDenominator>
            <LineSymbolizer>
                <Stroke>
                    <CssParameter name="stroke">#FFFFFF</CssParameter>
                    <CssParameter name="stroke-width">5</CssParameter>
                </Stroke>
            </LineSymbolizer>
        </Rule> </FeatureTypeStyle>

Any ideas?

Cheers,
-Arne

-------------------------------------------------------------------------
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/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4005,46f818ad9511628642973!

Hi,

I am running the .war file for beta3 from the website, and seeing this on
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_12-b04, mixed mode)

I have also tried Java 6 on x86, running 2.4.x of Geotools and SVN trunk
from Geoserver, and seem to be experiencing the same problem there.

I am using a copy of the "line" style on the road network for NYC for
testing, so it should be easy for you to duplicate?

-Arne

Chris Holmes wrote:

Hmmm... This is the second time I've heard this bug report, and it's
definitely a bit odd. I had one idea, but didn't hear back. Are you
running in java 6? If so could you try running in java 5? If that
works I may have a bit of an idea where to work. If not then Andrea
will have to help, I guess something might have changed with his speed
improvements.

Arne Kepp wrote:

Hi,

I am looking at a sample SLD that creates an outline effect by rendering
a white line on top of a dark line. I have seen this SLD work, but when
I try to do this on Geoserver 1.6 beta 3 the dark line ends up on top of
the white one.

Below is a sample, if I comment out the dark part the white is rendered
as expected.

<!-- 5000 - 25000 -->
    <FeatureTypeStyle>
        <Rule>
            <MinScaleDenominator>5000</MinScaleDenominator>
            <MaxScaleDenominator>25000</MaxScaleDenominator>
            <LineSymbolizer>
                <Stroke>
                    <CssParameter name="stroke">#806600</CssParameter>
                    <CssParameter name="stroke-width">6</CssParameter>
                </Stroke>
            </LineSymbolizer>
        </Rule> </FeatureTypeStyle>
    <FeatureTypeStyle>
        <Rule>
            <MinScaleDenominator>5000</MinScaleDenominator>
            <MaxScaleDenominator>25000</MaxScaleDenominator>
            <LineSymbolizer>
                <Stroke>
                    <CssParameter name="stroke">#FFFFFF</CssParameter>
                    <CssParameter name="stroke-width">5</CssParameter>
                </Stroke>
            </LineSymbolizer>
        </Rule> </FeatureTypeStyle>

Any ideas?

Cheers,
-Arne

-------------------------------------------------------------------------

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/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4038,46fb4335204022143011171!

Chris Holmes ha scritto:

Hmmm... This is the second time I've heard this bug report, and it's definitely a bit odd. I had one idea, but didn't hear back. Are you running in java 6? If so could you try running in java 5? If that works I may have a bit of an idea where to work. If not then Andrea will have to help, I guess something might have changed with his speed improvements.

Yep, that's my fault indeed. I'll fix this one tomorrow, I already
have a working patch (but I'm too tired by the 14hours flight to commit
it and port it to gt2 trunk today).

Cheers
Andrea

Lex Tiekink ha scritto:

Hi Andrea,

I've tried to follow your suggestions in:
http://docs.codehaus.org/display/GEOSDOC/4+GeoServer+in+Production+Environme
nt

We have Geoserver running on the out-of-the-box Jetty config. Is that a good
choice, performance-wise?

Test done for the Lausanne presentation showed that jetty is as good as Tomcat in fact. See:
http://www.foss4g2007.org/presentations/view.php?abstract_id=120

How do I apply the mentioned options? (like e.g. -server) In which file do I
add the options?

Hmm... it depends on how you do start GeoServer. If you use the links from the Windows menu, then it's in the link itself that you have to add -server.
Otherwise, it's in bin/startup.bat (or .sh if on Linux)

Cheers
Andrea