Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#10 CSW Clients in ArcMap - WMS layers added twice

v1.1
open
Pratik Sanyal
CSWClients (6)
5
2011-07-08
2011-07-08
eggwhites
No

When using CSW Clients in ArcMap to add a WMS service to the map from a CSW endpoint, the layers in the WMS are added twice to the map document. To replicate, launch CSW Clients in ArcMap, search gptogc endpoint for "wms", and add WMS services to the map using the "Add to Map" button. The service layers will be added twice - you can see it in the Table of Contents.

Discussion

  • I was solving this issue and I found out: source codes contained commented line 1286 in CswClientDockableWindow.cs class

    1285 // add newly created layer
    1286 // if(wmsGroupLayer.get_Layer(i).Name != newLayer.Name)
    1287 wmsGroupLayer.InsertLayer(newLayer, 0);

    if this line is uncommented servise layer is added once. But I dont know why it is commented. It can bring some other bugs although
    I did not find any problem with it during my testing.