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:
<?xml version="1.0" encoding="UTF-8"?>
<ogc:GetMap xmlns:ogc="http://www.opengis.net/ows"
xmlns:gml="http://www.opengis.net/gml"
version="1.1.1" service="WMS">
<StyledLayerDescriptor version="1.0.0">
<NamedLayer>
<Name>topp:states</Name>
<NamedStyle><Name>population</Name></NamedStyle>
</NamedLayer>
</StyledLayerDescriptor>
<BoundingBox srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coord><gml:X>-130</gml:X><gml:Y>24</gml:Y></gml:coord>
<gml:coord><gml:X>-55</gml:X><gml:Y>50</gml:Y></gml:coord>
</BoundingBox>
<Output>
<Format>kml</Format>
<Size><Width>550</Width><Height>250</Height></Size>
</Output>
</ogc:GetMap>
With all the three format options i get this error:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM "http://localhost:8081/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1" > <ServiceException>
java.lang.NullPointerException
null
</ServiceException></ServiceExceptionReport>
|