Hi,
i have geoserver 1.2.4 with a postgis datastore. Drawing lines works without problems but line labeling just don't work. I use the following sld to describe the streets featureType (yellow line shows up). There is no error message in the logs and the "name" attribute shows up in the sql select string. Drawing labels from point featuretypes with <PointPlacement = auto> works as well. -------------------------------------------- <NamedLayer> <Name>STREETS_labeled</Name> <UserStyle> <Name>lineD</Name> <IsDefault>1</IsDefault> <FeatureTypeStyle> <Rule> <Name>all</Name> <Title>all</Title> <LineSymbolizer> <Stroke> <CssParameter name="stroke">#FFFF66</CssParameter> <CssParameter name="stroke-width">6</CssParameter> <CssParameter name="stroke-linejoin">round</CssParameter> <CssParameter name="stroke-linecap">round</CssParameter> </Stroke> </LineSymbolizer> <TextSymbolizer> <Label> <ogc:PropertyName>name</ogc:PropertyName> </Label> <Font> <CssParameter name="font-family">Serif</CssParameter> <CssParameter name="font-style">normal</CssParameter> <CssParameter name="font-weight">normal</CssParameter> <CssParameter name="font-size">12</CssParameter> <CssParameter name="font-color">#000000</CssParameter> </Font> <LabelPlacement> <LinePlacement> <PerpendicularOffset>above</PerpendicularOffset> <LineWidth>2.5</LineWidth> <Gap>5</Gap> </LinePlacement> </LabelPlacement> </TextSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> --------------------------------------------------- Thanks for any help, Chris ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. <a href="http://ads.osdn.com/?ad_idt77&alloc_id492&op=click">http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Geoserver-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/geoserver-users |
The labeling code has gone through a big improvement for 1.3, I'd
recommend you just upgrade to 1.3-rc2, it's looking quite stable these days. It also does validation when you upload your sld file, which is quite useful for making sure that there's not a mistake in your file. best regards, Chris Quoting Christian Sengstock <[hidden email]>: > Hi, > i have geoserver 1.2.4 with a postgis datastore. Drawing lines works > without problems but line labeling just don't work. I use the > following sld to describe the streets featureType (yellow line shows > up). There is no error message in the logs and the "name" attribute > shows up in the sql select string. > > Drawing labels from point featuretypes with <PointPlacement = auto> > works as well. > > -------------------------------------------- > <NamedLayer> > <Name>STREETS_labeled</Name> > <UserStyle> > <Name>lineD</Name> > <IsDefault>1</IsDefault> > <FeatureTypeStyle> > <Rule> > <Name>all</Name> > <Title>all</Title> > <LineSymbolizer> > <Stroke> > <CssParameter name="stroke">#FFFF66</CssParameter> > <CssParameter name="stroke-width">6</CssParameter> > <CssParameter > name="stroke-linejoin">round</CssParameter> > <CssParameter name="stroke-linecap">round</CssParameter> > </Stroke> > </LineSymbolizer> > <TextSymbolizer> > <Label> > <ogc:PropertyName>name</ogc:PropertyName> > </Label> > <Font> > <CssParameter > name="font-family">Serif</CssParameter> > <CssParameter > name="font-style">normal</CssParameter> > <CssParameter > name="font-weight">normal</CssParameter> > <CssParameter > name="font-size">12</CssParameter> > <CssParameter > name="font-color">#000000</CssParameter> > </Font> > <LabelPlacement> > <LinePlacement> > > <PerpendicularOffset>above</PerpendicularOffset> > <LineWidth>2.5</LineWidth> > <Gap>5</Gap> > </LinePlacement> > </LabelPlacement> > </TextSymbolizer> > </Rule> > </FeatureTypeStyle> > </UserStyle> > </NamedLayer> > --------------------------------------------------- > > Thanks for any help, Chris > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration > Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. <a href="http://ads.osdn.com/?ad_idt77&alloc_id492&op=click">http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > _______________________________________________ > Geoserver-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > ---------------------------------------------------------- This mail sent through IMP: https://webmail.limegroup.com/ ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Geoserver-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/geoserver-users |
Free forum by Nabble | Edit this page |