We're updating the issue view to help you get more done. 

Legend is created with an empty row

Description

I have the following style definition, which contains 4 Rules.
3 are drawing instructions and the last one is a TextSymbolizer.
When the legend is created the Rule for the TextSymbolizer is rendered as an empty row,

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 <?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!-- a Named Layer is the basic building block of an SLD document --> <NamedLayer> <Name>Lanes Style Layer</Name> <UserStyle> <Title>Lanes Style Layer Title</Title> <Abstract>This style is used for the Layer in Edit Mode </Abstract> <FeatureTypeStyle> <Rule> <Name>Trenner</Name> <MaxScaleDenominator>68000.0</MaxScaleDenominator> <PointSymbolizer uom="http://www.opengeospatial.org/se/units/metre"> <Geometry> <ogc:Function name="endPoint"> <ogc:PropertyName>Shape</ogc:PropertyName> </ogc:Function> </Geometry> <Graphic> <Mark> <WellKnownName>circle</WellKnownName> <Fill> <CssParameter name="fill">#000000</CssParameter> <CssParameter name="fill-opacity">1</CssParameter> </Fill> <Stroke> <CssParameter name="stroke">#000000</CssParameter> <CssParameter name="stroke-width">1</CssParameter> <CssParameter name="stroke-linecap">round</CssParameter> </Stroke> </Mark> <Size>7</Size> <Rotation> <ogc:Function name="endAngle"> <ogc:PropertyName>Shape</ogc:PropertyName> </ogc:Function> </Rotation> </Graphic> </PointSymbolizer> <PointSymbolizer uom="http://www.opengeospatial.org/se/units/metre"> <Geometry> <ogc:Function name="startPoint"> <ogc:PropertyName>Shape</ogc:PropertyName> </ogc:Function> </Geometry> <Graphic> <Mark> <WellKnownName>circle</WellKnownName> <Fill> <CssParameter name="fill">#000000</CssParameter> <CssParameter name="fill-opacity">1</CssParameter> </Fill> <Stroke> <CssParameter name="stroke">#000000</CssParameter> <CssParameter name="stroke-width">1</CssParameter> <CssParameter name="stroke-linecap">round</CssParameter> </Stroke> </Mark> <Size>7</Size> <Rotation> <ogc:Function name="endAngle"> <ogc:PropertyName>Shape</ogc:PropertyName> </ogc:Function> </Rotation> </Graphic> </PointSymbolizer> </Rule> <Rule> <Name>Rampe</Name> <ogc:Filter> <ogc:PropertyIsNotEqualTo> <ogc:PropertyName>PROP</ogc:PropertyName> <ogc:Literal>1</ogc:Literal> </ogc:PropertyIsNotEqualTo> </ogc:Filter> <LineSymbolizer uom="http://www.opengeospatial.org/se/units/metre"> <Stroke> <CssParameter name="stroke">#adb2b5</CssParameter> <CssParameter name="stroke-width">8</CssParameter> </Stroke> </LineSymbolizer> </Rule> <Rule> <Name>Autobahn</Name> <ogc:Filter> <ogc:PropertyIsEqualTo> <ogc:PropertyName>PROP</ogc:PropertyName> <ogc:Literal>2</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:Filter> <LineSymbolizer uom="http://www.opengeospatial.org/se/units/metre"> <Stroke> <CssParameter name="stroke">#6b7173</CssParameter> <CssParameter name="stroke-width">10</CssParameter> </Stroke> </LineSymbolizer> </Rule> <Rule> <TextSymbolizer> <Label> <ogc:PropertyName>ID_ASFINAG</ogc:PropertyName> </Label> <Font> <CssParameter name="font-family">Arial</CssParameter> <CssParameter name="font-size">12</CssParameter> <CssParameter name="font-style">normal</CssParameter> <CssParameter name="font-weight">bold</CssParameter> </Font> <LabelPlacement> <LinePlacement> </LinePlacement> </LabelPlacement> <Halo /> <Fill> <CssParameter name="fill">#990099</CssParameter> </Fill> </TextSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor>

Environment

None

Status

Assignee

Alex Goudine

Reporter

Stefan Murawski

Triage

Fix versions

Affects versions

2.9.1

Components

Priority

Medium