Hi,

I have an sld file composed by a group with two rules. The idea is to 
symbolize a polygon with a border consisting of a line and that line has 
some balls spaced on it.
The SLD is done, as  you can see below. When I do the GetLegendGraphic 
the result is two squares for the first rule, the border, the other 
square for the second rule, represents the balls. The question is there 
any way to the GetLegendGraphic returns one square with the composition 
of the two rules?

Thank you in advance.

Best regards,

António José Silva

<?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>area_cativa</sld:Name>
<sld:Title>area cativa</sld:Title>
<sld:IsDefault>1</sld:IsDefault>
<sld:FeatureTypeStyle>
<sld:Name>group 0</sld:Name>
<sld:FeatureTypeName>Feature</sld:FeatureTypeName>
<sld:SemanticTypeIdentifier>generic:geometry</sld:SemanticTypeIdentifier>
<sld:SemanticTypeIdentifier>simple</sld:SemanticTypeIdentifier>
<sld:Rule>
<sld:Name>Área Cativa Linha</sld:Name>
<sld:PolygonSymbolizer>
<sld:Stroke/>
</sld:PolygonSymbolizer>
</sld:Rule>
<sld:Rule>
<sld:Name>Área Cativa</sld:Name>
<sld:PolygonSymbolizer>
<sld:Stroke>
<sld:GraphicStroke>
<sld:Graphic>
<sld:Mark>
<sld:Stroke>
<sld:CssParameter name="stroke">#333333</sld:CssParameter>
<sld:CssParameter name="stroke-width">8</sld:CssParameter>
</sld:Stroke>
</sld:Mark>
<sld:Size>
<ogc:Literal>2</ogc:Literal>
</sld:Size>
</sld:Graphic>
</sld:GraphicStroke>
<sld:CssParameter name="stroke">#333333</sld:CssParameter>
<sld:CssParameter name="stroke-linecap">round</sld:CssParameter>
<sld:CssParameter name="stroke-width">4.0</sld:CssParameter>
<sld:CssParameter name="stroke-dashoffset">2</sld:CssParameter>
<sld:CssParameter name="stroke-dasharray">4.0 26.0 </sld:CssParameter>
</sld:Stroke>
</sld:PolygonSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
</sld:UserLayer>
</sld:StyledLayerDescriptor>


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to