<div dir="ltr">Hey,<div><br></div><div>I have a requirement to style a vector layer without polluting the layer definition</div><div>in the map file with classobjects and such.</div><div>The method I have adopted is to use the SLD_Body parameter of a WMS GetMap request</div><div>to receive the styled images.</div><div>This has worked so far but now the size of the SLD has grown so much that exceeds the maximum number of characters permitted in a url.</div><div>So I can no longer send my SLD as a part of the GET request.</div><div>My SLD request till now was as follows</div><div><br></div><div><b><a href="http://localhost:8000/">http://localhost:8000/</a><span style="background-color:rgb(250,250,250);color:rgb(80,80,80);font-family:opensans,helvetica,arial,sans-serif;font-size:12px;white-space:pre-wrap">cgi-bin/mapserv?service=wms&request=GetMap&version=1.0.0&layers=namespace:layer&sld_body=sld_as_string..</span></b></div><div><span style="background-color:rgb(250,250,250);color:rgb(80,80,80);font-family:opensans,helvetica,arial,sans-serif;font-size:12px;white-space:pre-wrap"><br></span></div><div><span style="background-color:rgb(250,250,250);color:rgb(80,80,80);font-family:opensans,helvetica,arial,sans-serif;font-size:12px;white-space:pre-wrap"><br></span></div>To overcome this problem I believe POST rquests are a good solution since the SLD can then be sent as a part of the request body.<div><span style="background-color:rgb(250,250,250);color:rgb(80,80,80);font-family:opensans,helvetica,arial,sans-serif;font-size:12px;white-space:pre-wrap"><br></span></div><div>However, I am unable to execute a POST GetMap request.</div><div><br></div><div>The request body is as follows.</div><div><br></div><?xml version="1.0" encoding="UTF-8"?><br><ogc:GetMap xmlns:ogc="<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a>"<br>            xmlns:gml="<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>"<br>   version="1.3.0" service="WMS"><br>   <StyledLayerDescriptor version="1.0.0"><br>      <NamedLayer><br>        <Name>world</Name><br>      </NamedLayer><br>   </StyledLayerDescriptor><br>   <BoundingBox srsName="<a href="http://www.opengis.net/gml/srs/epsg.xml#4326">http://www.opengis.net/gml/srs/epsg.xml#4326</a>"><br>      <gml:coord><gml:X>-130</gml:X><gml:Y>24</gml:Y></gml:coord><br>      <gml:coord><gml:X>-55</gml:X><gml:Y>50</gml:Y></gml:coord><br>   </BoundingBox><br>   <Output><br>      <Format>image/png</Format><br>      <Size><br>      <Width>64</Width><br>      <Height>64</Height><br>   </Size><br>   </Output><br></ogc:GetMap><div><br></div><div><br></div><div>On sending this POST request to mapserver I get the error</div><div><span style="color:rgb(0,0,0);font-family:"times new roman";font-size:medium"><b>msCalculateScale(): General error message. Invalid image width or height.</b></span><br></div><div><br></div><div>Even though the width and height has been specified in the XML.</div><div>The above XML works with Geoserver.</div><div>Does Mapserver support POST GetMap requests?</div><div><br></div><div>Regards,</div><div>Sushrut Shivaswamy</div></div>