# WMS Service is Loading but not Shown in Map

**URL:** <https://mapwindow.discourse.group/t/wms-service-is-loading-but-not-shown-in-map/1192>\
**Category:** MapWindow5-users\
**Created:** [January 3, 2022, 4:51pm UTC](https://mapwindow.discourse.group/t/wms-service-is-loading-but-not-shown-in-map/1192 "2022-01-03T16:51:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Archangel](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@Archangel](https://mapwindow.discourse.group/u/Archangel)\
**Post date:** [January 3, 2022, 4:51pm UTC](https://mapwindow.discourse.group/t/wms-service-is-loading-but-not-shown-in-map/1192/1 "2022-01-03T16:51:30Z")

</div>

Hello,

First of all, thank you for developing this great application!  
I ran into a problem with a WMS service while building my application that I’m stuck on.  
From [this Discusion](https://mapwindow.discourse.group/t/loding-wms-layer/611/12) I have been able to successfully implement Stefan’s example. But when transferred to my needed WMS service I get nowhere. Below my Code:

```auto
        Dim MyWms As New WmsLayer
        Dim MyExtents As New Extents
        MyExtents.SetBounds(337000, 5670000, 0, 680000, 6000000, 0)
        MyWms.BaseUrl = "https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop"
        MyWms.BoundingBox = MyExtents
        MyWms.DoCaching = False
        MyWms.Epsg = 25832
        MyWms.Format = "image/png"
        MyWms.Layers = "dop20"
        MyWms.Name = "dop20"
        MyWms.Version = tkWmsVersion.wv13
        intLayerHandle = MyMap.AddLayer(MyWms, True)
        MyMap.set_LayerVisible(intLayerHandle, True)
        MyMap.Extents = MyExtents
        MyMap.Redraw()

```

And a [link to the WMS xml](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?REQUEST=GetCapabilities&SERVICE=WMS)

Because of the log I have attached below, I assume that the image data has been loaded. Threr a few Errors but a lot of Tiles are loaded. Only nothing is displayed. Can someone please help me further?  
By the way: In QGIS I can use this WMS Service.  
Thanks in advance

Andreas

My Log:  
17:46:41.597:  
LOAD TILES: xMin=0; xMax=0; yMin=0; yMax=0; zoom =18  
17:46:41.601: The same list of tiles can be used.  
17:46:41.601:  
LOAD TILES: xMin=0; xMax=3; yMin=0; yMax=3; zoom =2  
17:46:41.607: The same list of tiles can be used.  
17:46:42.823:  
LOAD TILES: xMin=0; xMax=7; yMin=2; yMax=6; zoom =3  
17:46:42.832: Queued to load from server: 30  
17:46:42.834: Tiles requested; generation = 3  
17:46:44.205: ERROR: 0; status 404 size 0 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5752500.000000,465625.000000,5793750.000000,508500.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5752500.000000,465625.000000,5793750.000000,508500.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:44.253: ERROR: 0; status 404 size 0 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5793750.000000,379875.000000,5835000.000000,422750.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5793750.000000,379875.000000,5835000.000000,422750.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:44.261: ERROR: 0; status 404 size 0 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5835000.000000,422750.000000,5876250.000000,465625.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5835000.000000,422750.000000,5876250.000000,465625.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:44.268: ERROR: 0; status 404 size 0 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5835000.000000,551375.000000,5876250.000000,594250.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5835000.000000,551375.000000,5876250.000000,594250.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:44.485: status 200 size 755 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5876250.000000,379875.000000,5917500.000000,422750.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5876250.000000,379875.000000,5917500.000000,422750.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:44.571: status 200 size 755 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5752500.000000,422750.000000,5793750.000000,465625.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5752500.000000,422750.000000,5793750.000000,465625.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:44.607: status 200 size 755 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5752500.000000,508500.000000,5793750.000000,551375.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5752500.000000,508500.000000,5793750.000000,551375.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:44.643: 17:46:44.643: status 200 size 755 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5917500.000000,508500.000000,5958750.000000,551375.000000&format=image/png&width=256&height=256&version=1.3.0&styles=status](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5917500.000000,508500.000000,5958750.000000,551375.000000&format=image/png&width=256&height=256&version=1.3.0&styles=status) 200 size 755 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5917500.000000,422750.000000,5958750.000000,465625.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5917500.000000,422750.000000,5958750.000000,465625.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)

17:46:45.130: status 200 size 755 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5793750.000000,551375.000000,5835000.000000,594250.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5793750.000000,551375.000000,5835000.000000,594250.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:45.212: status 200 size 755 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5876250.000000,551375.000000,5917500.000000,594250.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5876250.000000,551375.000000,5917500.000000,594250.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:45.274: status 200 size 755 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5752500.000000,379875.000000,5793750.000000,422750.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5752500.000000,379875.000000,5793750.000000,422750.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:45.329: status 200 size 755 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5752500.000000,551375.000000,5793750.000000,594250.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5752500.000000,551375.000000,5793750.000000,594250.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:45.331: ERROR: 0; status 404 size 0 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5917500.000000,551375.000000,5958750.000000,594250.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5917500.000000,551375.000000,5958750.000000,594250.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:45.334: status 200 size 755 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5917500.000000,379875.000000,5958750.000000,422750.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5917500.000000,379875.000000,5958750.000000,422750.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:45.682: status 200 size 755 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5835000.000000,337000.000000,5876250.000000,379875.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5835000.000000,337000.000000,5876250.000000,379875.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:45.696: status 200 size 755 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5835000.000000,594250.000000,5876250.000000,637125.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5835000.000000,594250.000000,5876250.000000,637125.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:45.717: status 200 size 755 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5793750.000000,337000.000000,5835000.000000,379875.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5793750.000000,337000.000000,5835000.000000,379875.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:45.805: status 200 size 755 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5876250.000000,337000.000000,5917500.000000,379875.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5876250.000000,337000.000000,5917500.000000,379875.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)  
17:46:45.822: status 200 size 755 b [https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms\_ni\_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5793750.000000,594250.000000,5835000.000000,637125.000000&format=image/png&width=256&height=256&version=1.3.0&styles=](https://www.geobasisdaten.niedersachsen.de/doorman/noauth/wms_ni_dop?request=GetMap&service=WMS&layers=dop20&crs=EPSG:25832&bbox=5793750.000000,594250.000000,5835000.000000,637125.000000&format=image/png&width=256&height=256&version=1.3.0&styles=)

---

<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 5, 2022, 9:25am UTC](https://mapwindow.discourse.group/t/wms-service-is-loading-but-not-shown-in-map/1192/2 "2022-01-05T09:25:17Z")

</div>

Perhaps your map isn’t in the right location or in the right projection.

To test you can load a small shapefile that is located in the region you’re interested in and make sure the projection is correct (i.e. .prj file exists).

After loading the shapefile you can output the map projection. It should match the projection you use in the WMS calls.

---

<div class="post-metadata">

**Author:** ![Archangel](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@Archangel](https://mapwindow.discourse.group/u/Archangel)\
**Post date:** [January 5, 2022, 4:58pm UTC](https://mapwindow.discourse.group/t/wms-service-is-loading-but-not-shown-in-map/1192/3 "2022-01-05T16:58:49Z")

</div>

Thanks for the feedback, pmeems.  
I tested some more with the settings and also switched to WGS 84 once. At some point I had some tiles, but very few. Then I deleted the mwtiles.db3 once. Now it has been recreated, but I don’t get any more tiles. I don’t understand where the error is. Does anyone have an idea?

---

<div class="post-metadata">

**Author:** ![jTati](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jTati](https://mapwindow.discourse.group/u/jTati)\
**Post date:** [January 6, 2022, 8:09am UTC](https://mapwindow.discourse.group/t/wms-service-is-loading-but-not-shown-in-map/1192/4 "2022-01-06T08:09:48Z")

</div>

Good morning Andreas,

first question for me would be: What version of MapWinGIS are you using?  
Since Jerry changed some important settings for using wms, the newest 5.3 might be worth a try, - or are you already using this new version?

have a nice day  
Stefan

---

<div class="post-metadata">

**Author:** ![Archangel](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@Archangel](https://mapwindow.discourse.group/u/Archangel)\
**Post date:** [January 6, 2022, 2:57pm UTC](https://mapwindow.discourse.group/t/wms-service-is-loading-but-not-shown-in-map/1192/5 "2022-01-06T14:57:36Z")

</div>

Hello Stefan,  
Thank you for taking the time to solve my problem. I have already upgraded to the new version 5.3.  
Between the pictures I received, I have also Pictures with error 404 and with the message “Outdated tile; cached: 18\0\0”. Do you know the meaning of the last message. I’m definitly inside of the bounding box.  
And why I can’t see the received images is the next question.

Andreas
