I am using ol.source.ImageWMS to insert layers into a web map from this WMS.

However, I am receiving Parameter 'width' contains unacceptable value error error if my screen + resolution is too high due to the WMS MaxWidth parameter being 2048. If I decrese the size of my window then the GetMap request is fine because the width value is lower than the limit.

Is there a way to make it work regardless of this limitation?

I don't have access to the WMS server, so changing the MaxWidth is not feasible.

  • Switch to WMS version 1.1.1 – nmtoken Jul 30 '18 at 17:20
  • @nmtoken According to this docs (docs.geoserver.org/latest/en/user/services/wms/…) there does not seem to be very much difference between 1.1.1 and 1.3.0 so I'm thinking that maybe I could have 1.1.1 as defalut version for my client app when requesting for WMS if this fixes this problem. Would you reccomend doing so? (it's just a development application I am doing for learning purposes ;) ) github.com/umbe1987/shire – umbe1987 Jul 30 '18 at 19:10
  • 1
    Well, the version 1.1.1 GetCapabilities response doesn't specify any MaxWidth, and the WMS 1.1.1 OGC specification document doesn't have such a setting, (whilst the WMS 1.3.0 spec does), so... It's possible that it was fixed before and WMS 1.3.0 allows the provider to set it, but possibly worth a punt – nmtoken Jul 30 '18 at 19:20
  • @nmtoken thanks! Will test it and tell you if it works (also considering some tests with other wms services and the consequences of setting 1.1.1 as default version) – umbe1987 Jul 30 '18 at 19:26
  • 1
    If the specification doesn't mention any such restriction, (and I just double checked, and it doesn't), and the GetCapabilities document response doesn't have such a setting, then the error is with the server software, which is in this case ArcGIS, so you would need to log the issue with ESRI. – nmtoken Aug 1 '18 at 16:39

Your Answer

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

Browse other questions tagged or ask your own question.