[Geoserver-devel] [jira] Created: (GEOS-3730) line widths in styles are converted to whole numbers using KML output

line widths in styles are converted to whole numbers using KML output
---------------------------------------------------------------------

                 Key: GEOS-3730
                 URL: http://jira.codehaus.org/browse/GEOS-3730
             Project: GeoServer
          Issue Type: Bug
          Components: Google Earth KML Output
    Affects Versions: 2.0.0
            Reporter: Miles Jordan
            Assignee: Andrea Aime

If you create a style that has a float as a width for a line, it is floored to an integer value when it is being requested as part of KML. If the width is < 1, Google Earth will not display the line at all, because the KML specifies that the line has a width of 0.

Take this SLD for example:
<?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&quot;
    xmlns:ogc="http://www.opengis.net/ogc&quot;
    xmlns:xlink="http://www.w3.org/1999/xlink&quot;
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
  <NamedLayer>
    <Name>Default Line</Name>
    <UserStyle>
      <Title>A boring default style</Title>
      <FeatureTypeStyle>
        <Rule>
          <LineSymbolizer>
            <Stroke>
              <CssParameter name="stroke">#FF0000</CssParameter>
              <CssParameter name="stroke-width">0.5</CssParameter>
            </Stroke>
          </LineSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

Apply it to a layer, and check the KML output. The width of the line style will be 0, as opposed to 0.5.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira