[Geoserver-devel] [jira] Created: (GEOS-1947) Icons in KML output from Geoserver appear to be overlayed with a grey mask

Icons in KML output from Geoserver appear to be overlayed with a grey mask
--------------------------------------------------------------------------

                 Key: GEOS-1947
                 URL: http://jira.codehaus.org/browse/GEOS-1947
             Project: GeoServer
          Issue Type: Bug
          Components: Google Earth KML Output
    Affects Versions: 1.6.3
         Environment: Geoserver 1.63, Tomcat 6.014, Java 6, Postgis datastore
            Reporter: Jason Pickering
            Assignee: Andrea Aime
            Priority: Minor

Described for the most part here...http://www.nabble.com/Icons-in-KML-appear-to-be-overlayed-with-a-grey-mask-to17450657.html#a17458538.

Basically, I have a rule in my SLD that defines a reference to an external graphic. The complete SLD is here..

http://www.who.int/tools/geoserver/styles/mm_bridges_style.sld

This SLD is used to output the following layer via a KML network link..

http://www.who.int/tools/geoserver/wms/kml_reflect?layers=WHO:mm_bridges

I created the icon in Inkscape, and the exported png
(http://www.who.int/tools/geoserver/www/icons/intact_bridge.png) There
should be two completely white features RGB(255,255,255) a green
background RGB(0,150,0) and a black circle around the edges. The other
icons for this layer are described in the SLD.

I have uploaded a screen shot from Google Earth (4.3.7204.0836 beta)
to http://www.who.int/tools/geoserver/www/icons/screenshot.png. I
added a white polygon similar to your screen shot for reference and
colored it white.

According to my copy of GIMP, this screenshot shows that the colors of
the icons are no longer the same. The pixels that should be white are
not RGB (170,170,170) and the green is now RGB(0,100,0).

According to Tyler, a color element is showing up in the KML stream, although this is not specified anywhere in the SLD.

The color change seems to be caused by the <color> element in the KML returned from GeoServer. If you comment out the <color> element, the colors are as you expect.

<kml>
   <Document>
      <name>WHO:mm_bridges</name>
      <Style id="GeoServerStylemm_bridges.1">
         <IconStyle>
            <Icon/>
         </IconStyle>
         <IconStyle>
            <color>ffaaaaaa</color>
            <colorMode>normal</colorMode>
            <Icon>
               <href>http://www.who.int/tools/geoserver/www/icons/intact_bridge.png&lt;/href&gt;
            </Icon>
         </IconStyle>
      </Style>

Tyler reports that removing this color element from the KML will resolve this problem, and this fits with what I have tried in Google Earth. However, since this KML is served out as a network stream, anytime the stream refreshes, the color element shows up again, and the icons become masked once again.

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