Hi Andrea, Thanx for your help. Unfortunately, the style you posted does not work for me. Now I have labels that are rendering on top of my graphics.
Having a font-size of 0 was the only way I could get the renderer NOT to label text. - If I remove the font tag completely, it seems to default to 10, so removing the tag is also not an option. - If I remove the label,font,and fill tags, the labels don't render, but neither does the graphic. - I tried using a GraphicSymbolizer, but I could get that work either. It's more than likely I'm not using this correctly as the only examples I could find use graphics in the Text/Line/Point/etc Symbolizer. Any other ideas would be appreciated! Thanx, Kevin Andrea Aime wrote: > Kevin Neufeld ha scritto: >> Hi Andrea, >> >> Ok, I think I found a test case. The zip attachment contains a shape >> file of a mere 10 features. If you try to render them using the SLD >> and zoom to the area defined by >> BBOX=1159128.0092474436,687668.0837239925,1166603.1769392828,695143.2514158319, >> >> geotools seems to get caught in an infinite loop and the image request >> never returns. >> >> The only thing of interest the logs produced were the following two >> lines: >> >> 29 Jun 10:52:03 ERROR [wms.WMSHttpHelper] - Error forwarding request >> http://localhost:8080/geoserver/wms?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=cews:SR7&EXCEPTIONS=application/vnd.ogc.se_inimage&STYLES=&TRANSPARENT=FALSE&FORMAT=image/png&SRS=EPSG:2927&WIDTH=774&HEIGHT=774&BBOX=1159128.0092474436,687668.0837239925,1166603.1769392828,695143.2514158319 >> >> Read timed out >> 29 Jun 10:54:04 ERROR [wms.WMSHttpHelper] - Error forwarding request >> http://localhost:8080/geoserver/wms?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.0&LAYERS=cews:SR7&EXCEPTIONS=application/vnd.ogc.se_inimage&STYLES=&TRANSPARENT=FALSE&FORMAT=image/png&SRS=EPSG:2927&WIDTH=774&HEIGHT=774&BBOX=1159128.0092474436,687668.0837239925,1166603.1769392828,695143.2514158319 >> >> Read timed out >> >> >> Any insight you might have would be greatly appreciated. > > The cause of the problem is in your style: > > <Font> > <CssParameter name="font-size">0</CssParameter> > </Font> > > Font size zero? Anyways, the renderer should defend itself > from this kind of abuse and just skip rendering labels. > > http://jira.codehaus.org/browse/GEOT-2579 > > Also, the style as build does not validate, not even against > the modified GeoServer schema. The version I included at the > bottom of this mail does validate and renderer without > entering in an infinite loop. > > Cheers > Andrea > > <?xml version="1.0" encoding="ISO-8859-1"?> > > <StyledLayerDescriptor version="1.0.0" > xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" > > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://www.opengis.net/sld > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> > > <NamedLayer> > > <Name>Highway7</Name> > > <UserStyle> > > <Title>Highway7</Title> > > > > <Abstract></Abstract> > > > > <FeatureTypeStyle> > > <Rule> > > <Title>Highway7Dark</Title> > > <Abstract>The dark component of the highway</Abstract> > > <LineSymbolizer> > > <Stroke> > > <CssParameter name="stroke">#af8d26</CssParameter> > > <CssParameter name="stroke-width">4.0</CssParameter> > > <CssParameter > name="stroke-linecap">round</CssParameter> > > </Stroke> > > </LineSymbolizer> > > </Rule> > > </FeatureTypeStyle> > > > > <FeatureTypeStyle> > > <Rule> > > <Title>Highway7Light</Title> > > <Abstract>The light component of the highway</Abstract> > > <LineSymbolizer> > > <Stroke> > > <CssParameter name="stroke">#fffa73</CssParameter> > > <CssParameter name="stroke-width">2.0</CssParameter> > > <CssParameter > name="stroke-linecap">round</CssParameter> > > </Stroke> > > </LineSymbolizer> > > <TextSymbolizer> > > <Label><ogc:PropertyName>TYPE</ogc:PropertyName></Label> > <Font> > > <CssParameter name="font-size">10</CssParameter> > > </Font> > > <Fill> > > <CssParameter name="fill">#FFFFFF</CssParameter> > > </Fill> > > <Graphic> > > <ExternalGraphic> > > <OnlineResource xlink:href="SR7.png"/> > > <Format>image/png</Format> > > </ExternalGraphic> > > </Graphic> > > <VendorOption name="spaceAround">5</VendorOption> > > <VendorOption name="group">yes</VendorOption> > > </TextSymbolizer> > > </Rule> > > </FeatureTypeStyle> > > </UserStyle> > > </NamedLayer> > > </StyledLayerDescriptor> ------------------------------------------------------------------------------ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel