TEPro6.1 通过开发接口加载WFS和WMS图层的实现方法
加载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 = @"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><!]></ExtInfo><ExtType>wms</ExtType></EXT>", "gisplg.rct", 0, "图层名称");
skyline加载wfs,wms服务参考
最新推荐文章于 2024-05-14 21:30:33 发布