Hi people, i need help, i found reading the geoserver help that i can  
use labeling, following lines, for example the name of the streets,  
but i copied the example to my geoserver with some changes and test it  
with udig and dont work, i only replace the name of my label field and  
add some strokes to the lines, and dont work, please somebody help me  
to correct this, this is the code that i use.


<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld";  
xmlns:sld="http://www.opengis.net/sld";  
xmlns:ogc="http://www.opengis.net/ogc";  
xmlns:gml="http://www.opengis.net/gml"; version="1.0.0">
     <sld:UserLayer>
         <sld:LayerFeatureConstraints>
             <sld:FeatureTypeConstraint/>
         </sld:LayerFeatureConstraints>
         <sld:UserStyle>
             <sld:Name>Default Styler</sld:Name>
             <sld:Title/>
             <sld:IsDefault>1</sld:IsDefault>
             <sld:FeatureTypeStyle>
                 <sld:Name>simple</sld:Name>
                 <sld:FeatureTypeName>Feature</sld:FeatureTypeName>
                  
<sld:SemanticTypeIdentifier>generic:geometry</sld:SemanticTypeIdentifier>
                  
<sld:SemanticTypeIdentifier>simple</sld:SemanticTypeIdentifier>
                 <sld:Rule>
                     <sld:LineSymbolizer>
                         <sld:Geometry>
                             <ogc:PropertyName>the_geom</ogc:PropertyName>
                         </sld:Geometry>
                         <sld:Stroke>
                             <sld:CssParameter  
name="stroke-width">3.0</sld:CssParameter>
                         </sld:Stroke>
                     </sld:LineSymbolizer>
       <sld:LineSymbolizer>
             <sld:Geometry>
               <ogc:PropertyName>the_geom</ogc:PropertyName>
             </sld:Geometry>
             <sld:Stroke>
               <sld:CssParameter name="stroke">#FFFFFF</sld:CssParameter>
               <sld:CssParameter  
name="stroke-linecap">square</sld:CssParameter>
               <sld:CssParameter name="stroke-width">1.5</sld:CssParameter>
             </sld:Stroke>
           </sld:LineSymbolizer>
                     <sld:TextSymbolizer>
                         <sld:Label>
                             <ogc:PropertyName>nombre</ogc:PropertyName>
                         </sld:Label>
                         <sld:Font>
                             <sld:CssParameter  
name="font-family">Arial</sld:CssParameter>
                             <sld:CssParameter  
name="font-size">12.0</sld:CssParameter>
                             <sld:CssParameter  
name="font-style">normal</sld:CssParameter>
                             <sld:CssParameter  
name="font-weight">normal</sld:CssParameter>
                         </sld:Font>
                         <sld:LabelPlacement>
                             <sld:LinePlacement>
                                  
<sld:PerpendicularOffset>10.0</sld:PerpendicularOffset>
                             </sld:LinePlacement>
                         </sld:LabelPlacement>
                         <sld:Fill>
                             <sld:CssParameter  
name="fill">#000000</sld:CssParameter>
                         </sld:Fill>
                         <sld:VendorOption  
name="spaceAround">2</sld:VendorOption>
                         <sld:VendorOption name="group">yes</sld:VendorOption>
                         <sld:VendorOption  
name="followLine">true</sld:VendorOption>
                     </sld:TextSymbolizer>
                 </sld:Rule>
             </sld:FeatureTypeStyle>
         </sld:UserStyle>
     </sld:UserLayer>
</sld:StyledLayerDescriptor>

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


--

Este mensaje le ha llegado mediante el servicio de correo electronico que 
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema 
Nacional de Salud. La persona que envia este correo asume el compromiso de usar 
el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to