Decrease the "goodnessOfFit" vendor option which tells GeoServer how closely
you want labels to match the geometries they go with.
http://docs.geoserver.org/2.0.x/en/user/styling/sld-reference/labeling.html#goodness-of-fit
--
David Winslow
OpenGeo - http://opengeo.org/
On Tue, Nov 2, 2010 at 3:36 AM, tommaso <[email protected]> wrote:
> Hallo List,
>
> I want to label polygons, and I noticed that if a label is bigger as his
> polygon (but not only some pixels bigger, I mean 1/3 bigger or more), no
> label is displayed.
> How can I change this behavior?
>
> My sld:
>
> <NamedLayer>
> <Name>Default Polygon</Name>
> <UserStyle>
> <Title>Default polygon style</Title>
> <FeatureTypeStyle>
> <Rule>
> <Title>Polygon</Title>
> <PolygonSymbolizer>
> <Fill>
> <CssParameter name="fill">#5A5A5A</CssParameter>
> </Fill>
> <Stroke>
> <CssParameter name="stroke">#000000</CssParameter>
> <CssParameter name="stroke-width">0.5</CssParameter>
> </Stroke>
> </PolygonSymbolizer>
> <TextSymbolizer>
> <Label>
> <ogc:PropertyName>exhibitor</ogc:PropertyName>
> </Label>
> <Font>
> <CssParameter name="font-family">Arial</CssParameter>
> <CssParameter name="font-size">12</CssParameter>
> <CssParameter name="font-style">normal</CssParameter>
> <CssParameter name="font-weight">normal</CssParameter>
> </Font>
> <Fill>
> <CssParameter name="fill">#FF0000</CssParameter>
> </Fill>
> </TextSymbolizer>
> </Rule>
> </FeatureTypeStyle>
> </UserStyle>
> </NamedLayer>
>
>
> Cheers,
> Tommaso
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users