I Updated the MapWinGIS.ocx to 5.2.4, and that cant support WMS Layer?

Hello Everybody~~

Recently, I Updated my MapWindow from version 5.5 to 5.6
and the MapWinGIS.ocx from version 5.1 to 5.2.4

I have a map server that built by Geoserver
My project is used MapWinGIS to load the WMS from this Geoserver
but when I updated my MapWinGIS, my code was the same as the old version(5.1)
when I use WMS Layer load the WMS, there are always white-block in the area.

Does anyone know how to solve this problem?

my code is:

MapWinGIS.WmsLayer wms = new MapWinGIS.WmsLayer(); 
MapWinGIS.Extents ext = new MapWinGIS.Extents();

ext.SetBounds(-180.0, -270.0, 0, 180.0, 90.0, 0);
wms.BoundingBox = ext;
wms.BaseUrl = "http://localhost:8076/geoserver/wms";

wms.Layers = "my:Satellite";
wms.Epsg = 4326;

wms.Format = "image/png";
wms.DoCaching = true;
wms.Styles = "";

this.axMap.AddLayer(wms, true);

I found there is a Geoserver Demo Site for test:
Geoserver Demo Site
Geoserver Demo WMS Site

axMap1.CursorMode = tkCursorMode.cmPan;
axMap1.Projection = tkMapProjection.PROJECTION_WGS84;
axMap1.TileProvider = tkTileProvider.ProviderCustom;

MapWinGIS.WmsLayer wms = new MapWinGIS.WmsLayer();
MapWinGIS.Extents ext = new MapWinGIS.Extents();

double zMin = 0, zMax = 0;
ext.SetBounds(-124.73142200000001, 24.955967, zMin, -66.969849, 49.371735, zMax);
wms.BoundingBox = ext;

wms.BaseUrl = "https://demo.geo-solutions.it/geoserver/topp/wms";

wms.Name = "topp:states";
wms.Layers = "topp:states";
wms.Epsg = 4326;

wms.Format = "image/png";
wms.DoCaching = false;
wms.Styles = "";

axMap1.AddLayer(wms, true);

Hi

Did you ever sort this out? I am having the same problem

Regards

Colleen Crawford

Hello @colleen and @strong12345

I can’t say whether this has specifically been resolved, since I don’t understand the workings of WMS. But I can tell you what has been done (based on user input). See Atlassian Jira ticket 214, which documents the most recent WMS changes that have been made, and note that the follow-up change was made AFTER the release of v5.2.4.

Hope that helps.
Jerry.

I am running in to this same issue, valid WMS layers are no longer displaying. Is there a release candidate that has the WMS changes made?