3

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.

2

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:

<GetMap>
  <Format>image/png</Format>
  <Format>application/atom+xml</Format>
  ...
  <DCPType>
    <HTTP>
      <Get>
        <OnlineResource xlink:type="simple" xlink:href="http://xxx/geoserver/CPRM_EN_Bedrock_and_Age/ows?SERVICE=WMS&"/>
      </Get>
    </HTTP>
  </DCPType>
</GetMap>

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

2

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:

tMap_inlineFeatureSmile.xml

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.