作者:蕊蕊宝宝妈妈_534 | 来源:互联网 | 2023-08-30 14:17
TEPro6.1通过开发接口加载WFS和WMS图层的实现方法加载WFS:ILayer61pILayersgworld.Creator.CreateFeatureLayer(图层名称
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&;
sgworld.Creator.CreateImageryLayer("wms", -180, 90, 180, -90, "wms", "gisplg.rct", 0, "图层名称");