It's possible to make WFS queries by POSTing query as XML.

Does GeoServer support this also for WMS GetMap request? If yes, I'm looking for information on XML syntax for such query. Sounds like a "open documentation and start reading" question, but I haven't found any information.

It's possible to POST GetMap query with same syntax as regular GET queries have, but I'm looking for XML solution.


You need to look at the GetCapabilities response of the GeoServer services to see if those services support XML/POST requests for GetMap requests. For example in one GeoServer service I just looked at:

        <OnlineResource xlink:type="simple" xlink:href="http://xxx/geoserver/CPRM_EN_Bedrock_and_Age/ows?SERVICE=WMS&"/>

Only <Get> support is listed.

I looked at a couple of GeoServer services and didn't see Post listed, so its possible that XML/POST support is not available in GeoServer as a default operation.

As your question is specifically about GeoServer I should probably stop there, but I can tell you that other FOSS4G WMS server software does support XML/POST operations for GetMap requests, for example MapServer


GeoServer has been supporting XML GetMap for 13+ years, even if it does not advertise it in the capabilities document (pull requests welcomed!). Some examples:


However it is currently impossible to send SQL viewparams with this solution as it is not present in the WMS GetMap specs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.