Issue Details (XML | Word | Printable)

Key: GEOS-2870
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Andrea Aime
Reporter: Jody Garnett
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
GeoServer

Style generated to label cities was invalid

Created: 15/Apr/09 07:19 AM   Updated: 04/Dec/09 02:43 PM   Resolved: 04/Dec/09 02:43 PM
Return to search
Component/s: UI
Affects Version/s: 1.7.3
Fix Version/s: None

Time Tracking:
Not Specified

Environment: http://ccip.lisasoft.com:8080/geoserver/


 Description  « Hide

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>


Justin Deoliveira added a comment - 04/Dec/09 02:43 PM

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