[Geoserver-devel] [jira] (GEOS-6446) Error Exporting to KML format within XML Body

T Vieira created an issue

GeoServer / BugGEOS-6446

Error Exporting to KML format within XML Body

Issue Type:

BugBug

Affects Versions:

2.5, 2.4.4

Assignee:

Andrea Aime

Created:

10/Apr/14 11:13 AM

Priority:

MajorMajor

Reporter:

T Vieira

Error Exporting to KML format within XML Body.

Try to export to KML format from “Demos” window with Geoserver 2.5 and got an error.
I also tested in Geoserver 2.4.4 and got the same error.
With Geoserver 2.1.4 the export to KML has been successful.

The Test:
-> Installed Geoserver 2.5 Stable;
-> Go to “Demos” window; –> Request: WMS_getMap.xml
-> Change the <Output><Format> to:
–> kml
–> application/vnd.google-earth.kmz+xml
–> application/vnd.google-earth.kml+xml

Supported Output Formats:
http://docs.geoserver.org/stable/en/user/services/wms/outputformats.html

Example:

&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
&lt;ogc:GetMap xmlns:ogc="http://www.opengis.net/ows"
            xmlns:gml="http://www.opengis.net/gml"
   version="1.1.1" service="WMS"&gt;
   &lt;StyledLayerDescriptor version="1.0.0"&gt;
      &lt;NamedLayer&gt;
        &lt;Name&gt;topp:states&lt;/Name&gt;
        &lt;NamedStyle&gt;&lt;Name&gt;population&lt;/Name&gt;&lt;/NamedStyle&gt;
      &lt;/NamedLayer&gt;
   &lt;/StyledLayerDescriptor&gt;
   &lt;BoundingBox srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"&gt;
      &lt;gml:coord&gt;&lt;gml:X&gt;-130&lt;/gml:X&gt;&lt;gml:Y&gt;24&lt;/gml:Y&gt;&lt;/gml:coord&gt;
      &lt;gml:coord&gt;&lt;gml:X&gt;-55&lt;/gml:X&gt;&lt;gml:Y&gt;50&lt;/gml:Y&gt;&lt;/gml:coord&gt;
   &lt;/BoundingBox&gt;
   &lt;Output&gt;
      &lt;Format&gt;kml&lt;/Format&gt;
      &lt;Size&gt;&lt;Width&gt;550&lt;/Width&gt;&lt;Height&gt;250&lt;/Height&gt;&lt;/Size&gt;
   &lt;/Output&gt;
&lt;/ogc:GetMap&gt;

With all the three format options i get this error:

&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;&lt;!DOCTYPE ServiceExceptionReport SYSTEM "http://localhost:8081/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd"&gt; &lt;ServiceExceptionReport version="1.1.1" &gt;   &lt;ServiceException&gt;
      java.lang.NullPointerException 
null 
&lt;/ServiceException&gt;&lt;/ServiceExceptionReport&gt;

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo