Hi list,
I’m wondering if I’m doing it wrong (or if I found a bug)?.
When I perform a POST with GetMap XML payload I get an image back rendered with default styles for the layers in the layer group.
From the example data I changed the style of tiger:poi in the layer group tiger-ny to use the point style instead.
Issuing a GET for tiger-ny renders the tiger:poi correctly with the point style. (GeoServer 2.5-RC1).
Issuing a POST with the same bounding box to http://localhost:8080/geoserver/wms with the following payload gives an image rendered with the default poi style named tiger-giant_polygon_tiger-poly_landmarks_tiger-tiger_roads_tiger-poi.png
<?xml version="1.0" encoding="utf-8"?><ows:GetMap xmlns=“http://www.opengis.net/sld” xmlns:xlink=“http://www.w3.org/1999/xlink” xmlns:gml=“http://www.opengis.net/gml” xmlns:se=“http://www.opengis.net/se” xmlns:ogc=“http://www.opengis.net/ogc” xmlns:ows=“http://www.opengis.net/ows” service=“WMS” version=“1.1.1” format=“image/png” crs=“EPSG:4326”>
tiger-ny
gml:coord
gml:X-74.08349171875</gml:X>
gml:Y40.634971066406</gml:Y>
</gml:coord>
gml:coord
gml:X-73.943530351562</gml:X>
gml:Y40.837401066406</gml:Y>
</gml:coord>
image/png
false
354
512
XML
</ows:GetMap>
It feels like there might be some difference in the way GeoServer handles GET requests and POST requests.
Perhaps there is some error in the construction of the XML-payload?
I would be grateful for any help.
Regards,
Olle