GeoServer

Style generated to label cities was invalid

Details

  • Number of attachments :
    0

Description

Using the style editor to generate labeled cities produced an invalid style; when the map preview widget was called from internet explorer a wms exception was immediately produced.

  1. Initially the style was generated without an empty <PropertyName> for the label; addeding in "name" by hand using the style editor did not fix the problem.
  2. Copying the style into uDig to try out out was unsuccessful (it did not pass validation; and udig ended up using a default style)

The generated style is here:

<?xml version="1.0" encoding="UTF-8"?>
<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">
<NamedLayer>
    <Name>city</Name>
    <UserStyle>
      <Name>city_style</Name>
      <Title>geoserver style</Title>
      <Abstract>Generated by GeoServer</Abstract>
      <FeatureTypeStyle>
      <Rule>
        <PointSymbolizer>
          <Graphic>
  <Mark>
    <WellKnownName></WellKnownName>
          <Fill>
            <CssParameter name="fill">#0000BB</CssParameter>
            <CssParameter name="fill-opacity">1</CssParameter>
          </Fill>
  </Mark>
  <Opacity>1</Opacity>
  <Size>5</Size>
</Graphic>

        </PointSymbolizer>
        <TextSymbolizer>
          <Label>
            <ogc:PropertyName>name</ogc:PropertyName>
          </Label>
            <Font>
              <CssParameter name="font-family">Times New Roman</CssParameter>
              <CssParameter name="font-style">Normal</CssParameter>
              <CssParameter name="font-size">12</CssParameter>
            </Font>
          <Fill>
            <CssParameter name="fill">#000000</CssParameter>
            <CssParameter name="fill-opacity">1</CssParameter>
          </Fill>
        </TextSymbolizer>
      </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

Activity

Hide
Justin Deoliveira added a comment -

The old styler editor has been abandoned to the 1.7.x void.

Show
Justin Deoliveira added a comment - The old styler editor has been abandoned to the 1.7.x void.
Hide
Andrea Aime added a comment -

Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update

Show
Andrea Aime added a comment - Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: