(no subject)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

Christian Sengstock
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