WMS Service is Loading but not Shown in Map

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 I have been able to successfully implement Stefan’s example. But when transferred to my needed WMS service I get nowhere. Below my Code:

        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

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=
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=
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=
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=
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=
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=
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=
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 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=

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=
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=
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=
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=
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=
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=
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=
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=
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=
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=
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=

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.

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?

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

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