加载WFS:
ILayer61 pILayer = sgworld.Creator.CreateFeatureLayer("图层名称", "Server=http://SKYZH/SFS/streamer.ashx;User=admin;WFSVersion=1.0.0;LayerName=rd;TEPlugName=WFS;", 0);
pILayer.Load();
加载WMS:
string wmsStr = @"[INFO]
MPP=0.17578125
Url=http://www.atlas.gc.ca/cgi-bin/atlaswms_en?request=GetMap&Version=1.1.1&Service=WMS&SRS=EPSG:4326&BBOX=-180,-90,180,90&HEIGHT=128&WIDTH=256&Layers=wld_riv&Styles=default&Format=image/png";
sgworld.Creator.CreateImageryLayer("wms", -180, 90, 180, -90, "<EXT><ExtInfo><![CDATA[" + wmsStr + "]]></ExtInfo><ExtType>wms</ExtType></EXT>", "gisplg.rct", 0, "图层名称");