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"; 
    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>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

        

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to