Skylinesoft 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 = @"[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, "圖層名稱");

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM