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

http://localhost:8080/geoserver/wms?LAYERS=tiger-ny&STYLES=&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-74.08349171875,40.634971066406,-73.943530351562,40.837401066406&WIDTH=354&HEIGHT=512

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">
<StyledLayerDescriptor version="1.0.0">
<NamedLayer>
<Name>tiger-ny</Name>
</NamedLayer>
</StyledLayerDescriptor>
<BoundingBox srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>
<gml:coord>
<gml:X>-74.08349171875</gml:X>
<gml:Y>40.634971066406</gml:Y>
</gml:coord>
<gml:coord>
<gml:X>-73.943530351562</gml:X>
<gml:Y>40.837401066406</gml:Y>
</gml:coord>
</BoundingBox>
<Output>
<Format>image/png</Format>
<Transparent>false</Transparent>
<Size>
<Width>354</Width>
<Height>512</Height>
</Size>
</Output>
<Exceptions>XML</Exceptions>
</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
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to