# WMS Service woes

**URL:** <https://mapwindow.discourse.group/t/wms-service-woes/18>\
**Category:** MapWindow5-users\
**Created:** [January 3, 2019, 8:55am UTC](https://mapwindow.discourse.group/t/wms-service-woes/18 "2019-01-03T08:55:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathijs.Dumon](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Mathijs.Dumon](https://mapwindow.discourse.group/u/Mathijs.Dumon)\
**Post date:** [January 3, 2019, 8:55am UTC](https://mapwindow.discourse.group/t/wms-service-woes/18/1 "2019-01-03T08:55:16Z")

</div>

Cool a new forum!

I’m having some issues getting my wms to display - tested it with QGis so it’s not the WMS.  
The base url is:  
[https://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB-basiskaart/wms](https://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB-basiskaart/wms)

Been playing with the configuration in the project XML file, but that didn’t change much.

I can dig in the code if you want - a few pointers would be helpful though.

kind regards,  
Mathijs Dumon

---

<div class="post-metadata">

**Author:** ![Mathijs.Dumon](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Mathijs.Dumon](https://mapwindow.discourse.group/u/Mathijs.Dumon)\
**Post date:** [January 3, 2019, 3:32pm UTC](https://mapwindow.discourse.group/t/wms-service-woes/18/2 "2019-01-03T15:32:59Z")

</div>

Some more testing:  
I made a proxy of the url above on my local geoserver and I could get that to display nicely in QGis as well. No luck in MapWindow5

I enabled & checked the geoserver request log and it is receiving correct queries from MapWindow though, if I enter these in my browser I get png files. So perhaps something is broken at the MapWinGIS level it seems?

I still can display some of the WMS services included as examples though… weird.

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [January 7, 2019, 10:59am UTC](https://mapwindow.discourse.group/t/wms-service-woes/18/3 "2019-01-07T10:59:24Z")

</div>

I just checked in MW5 and can’t get the WMS data either.  
Getting the legend works: [http://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB-basiskaart/wms?request=GetLegendGraphic&version=1.3.0&format=image/png&layer=GRB\_BSK&scale=1&height=30&width=40&LEGEND\_OPTIONS=forceLabels:on](http://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB-basiskaart/wms?request=GetLegendGraphic&version=1.3.0&format=image/png&layer=GRB_BSK&scale=1&height=30&width=40&LEGEND_OPTIONS=forceLabels:on)  
The GetCapabilities is also working:  
[https://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB-basiskaart/wms?request=GetCapabilities](https://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB-basiskaart/wms?request=GetCapabilities)  
Making me believe the URL is working.

I can get the WMS of another URL: [http://geodata.nationaalgeoregister.nl/ahn1/wms](http://geodata.nationaalgeoregister.nl/ahn1/wms)  
 ![image](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/0a35c42b29cdd4c711d8d885e816f11df17541db.jpeg)

Can you provide an URL to a tile (png/jpeg) that is working in the browser?  
Perhaps you need some additional arguments.

---

<div class="post-metadata">

**Author:** ![Mathijs.Dumon](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Mathijs.Dumon](https://mapwindow.discourse.group/u/Mathijs.Dumon)\
**Post date:** [January 7, 2019, 1:34pm UTC](https://mapwindow.discourse.group/t/wms-service-woes/18/4 "2019-01-07T13:34:01Z")

</div>

This one works for me:  
[http://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB-basiskaart/wms?REQUEST=GetMap&HEIGHT=256&WIDTH=256&LAYERS=GRB\_BSK&FORMAT=image/png&crs=EPSG:31370&bbox=22000,125257.831325301,259000,269742.168674699](http://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB-basiskaart/wms?REQUEST=GetMap&HEIGHT=256&WIDTH=256&LAYERS=GRB_BSK&FORMAT=image/png&crs=EPSG:31370&bbox=22000,125257.831325301,259000,269742.168674699)

and this one as well:  
[http://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB-basiskaart/wms?REQUEST=GetMap&HEIGHT=256&WIDTH=256&LAYERS=GRB\_BSK&FORMAT=image/png&bbox=2.52,50.64,5.94,51.51](http://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB-basiskaart/wms?REQUEST=GetMap&HEIGHT=256&WIDTH=256&LAYERS=GRB_BSK&FORMAT=image/png&bbox=2.52,50.64,5.94,51.51)

this is an example of a succesfully received query from MapWindow on my geoserver:  
wms?request=GetMap&service=WMS&layers=GRB\_BSK&&srs=EPSG:31370&bbox=70140.625000,222734.375000,73843.750000,224218.750000&format=image/png&width=256&height=256&version=1.1.1&styles=

which also works on the actual wms server obviously.

---

<div class="post-metadata">

**Author:** ![Mathijs.Dumon](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Mathijs.Dumon](https://mapwindow.discourse.group/u/Mathijs.Dumon)\
**Post date:** [January 7, 2019, 5:49pm UTC](https://mapwindow.discourse.group/t/wms-service-woes/18/5 "2019-01-07T17:49:05Z")

</div>

Okay

I’ve been bisecting mapwingis since that’s were the error occurs - I don’t have issues with the last release btw, only the development version

this commit still works for me:

> <https://github.com/MapWindow/MapWinGIS/commit/f268c10593e9626a3447aa54ecb630bdfe87bae1>

the merged changes following that commit related to using libcurl seem to have created this regression. I’ll try to do some more testing this week to see where it is coming from exactly.

cheers,  
Mathijs

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [January 9, 2019, 3:36pm UTC](https://mapwindow.discourse.group/t/wms-service-woes/18/6 "2019-01-09T15:36:49Z")

</div>

Your pull request [https://github.com/MapWindow/MapWinGIS/pull/137](https://github.com/MapWindow/MapWinGIS/pull/137) is now merged with the dev-branch and it seems to work fine.

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [March 22, 2019, 8:59am UTC](https://mapwindow.discourse.group/t/wms-service-woes/18/7 "2019-03-22T08:59:31Z")

</div>


