Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.9.1
    • Fix Version/s: 2.11.4, 2.12.1, 2.13-beta
    • Component/s: WFS
    • Labels:
      None

      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,

      <?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>
      
      

        Attachments

          Activity

            People

            • Assignee:
              Alex Alex Goudine
              Reporter:
              oers Stefan Murawski
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: