[Geoserver-devel] [JIRA] (GEOS-7963) Invalid KML IconStyle

Steve Ikeoka created an issue

GeoServer / BugGEOS-7963

Invalid KML IconStyle

Issue Type:

BugBug

Affects Versions:

2.10.1

Assignee:

Unassigned

Components:

Google Earth KML Output

Created:

01/Feb/17 6:57 PM

Priority:

MediumMedium

Reporter:

Steve Ikeoka

The KML generated by GeoServer does not validate against the KML schema because the Icon element in the IconStyle contains the refreshInterval, viewRefreshTime and viewBoundScale elements which are not allowed there (https://developers.google.com/kml/documentation/kmlreference#iconstyle). This can prevent some clients from being able to load GeoServer’s KML.

<IconStyle>
<color>00ffffff</color>
<scale>0.4</scale>
<heading>0.0</heading>
<Icon>
<href>http://icons.opengeo.org/markers/icon-poly.1.png</href>
<refreshInterval>0.0</refreshInterval>
<viewRefreshTime>0.0</viewRefreshTime>
<viewBoundScale>1.0</viewBoundScale>
</Icon>
</IconStyle>

This issues appears to have originated in GeoServer 2.4 with the completion of https://github.com/geoserver/geoserver/wiki/GSIP-98—replace-old-KML-module-with-new-one which replaced the old KML module with one that relies on the JavaAPIforKml library. This caused GeoServer to inherit the bug from that library https://github.com/micromata/javaapiforkml/issues/9.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.718.4#100026-sha1:69a2752)

Atlassian logo