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?

thanks for the awesome information.

@pmeems, Although there is more (and always will be more) that could be done, there have been a number of significant updates in recent months, and I wonder if now is a good time to put out a release candidate so that the changes can be reviewed and tested?

Thank you.
Jerry

Hi @jerryfaust I’m trying to create a new release now, but I’m having huge problems registering the OCX.
I have no problem building the develop-branch.
I’m using gdalv2.4.4 from GISInternals Support Site
Normally I use the old tool Dependencies Walker to see what dll I’m missing. This is usually the problem but DW is no longer running on my laptop, it just hangs when loading any dll.

I tried other dependency checkers but they don’t report anything obviously.
Can you register your version? If so which version of GDAL are you using?

I also noticed the GDAL version we’re using is quite old.
I tried using the latest v3 of GDAL but then I couldn’t compile.
I know somebody tried to make MapWinGIS support GDAL v3 but that is not yet finished.
My knowledge of C++ is too little to do this. Perhaps somebody else can step up and have a look at this?
I assume we have some other C++ developers here that could help.
I’ll start another topic for this.

[UPDATE]
I finally found a dependency checker that is working: GitHub - lucasg/Dependencies: A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
It showed me libcurl needs two additional files (now) which are not in the v2.4.4 zips on GisInternals.
That is probably the reason those zips are no longer available :wink:
I’m now using v2.4.3 which has these dlls. I’ll continue with the release.