Hello everyone
I have a question! I have a rule for different classes of roads, and I need
labeling that classes with differents label rules. The routes under number
10 with a background shield , and routes above number 11 another shield.
I have this code:

<sld:TextSymbolizer>            
            <sld:Label>              
              <ogc:PropertyName>NumRuta</ogc:PropertyName>* ## I need filter
here?#*#              
            </sld:Label>
            <sld:Font>
              <sld:CssParameter name="font-family">News Gothic
Bold</sld:CssParameter>
              <sld:CssParameter name="font-size">11</sld:CssParameter>
              <sld:CssParameter name="font-style">bold</sld:CssParameter>
              <sld:CssParameter name="font-weight">normal</sld:CssParameter>
            </sld:Font>  
            <sld:LabelPlacement>
              <sld:PointPlacement>
               <Rotation>0</Rotation> 
              </sld:PointPlacement>              
            </sld:LabelPlacement>
            <sld:Fill>
              <sld:CssParameter name="fill">#323232</sld:CssParameter>
            </sld:Fill>
                  <sld:Graphic>
                    <sld:ExternalGraphic> <sld:OnlineResource
xlink:type="simple" xlink:href="background_security2.svg"
/><Format>image/svg+xml</Format>                      
                        </sld:ExternalGraphic>
                    <sld:Size>20</sld:Size>
                  </sld:Graphic>
            <VendorOption name="followLine">false</VendorOption>
            <VendorOption name="graphic-resize">proportional</VendorOption>
            <VendorOption name="graphic-margin">3</VendorOption>
            <VendorOption name="repeat">100</VendorOption>
            <VendorOption name="labelAllGroup">true</VendorOption>
          </sld:TextSymbolizer>

How use the filter option with labels
Thanks!



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Different-Labels-using-filter-SLD-tp5332816.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to