获取Server中的IFeatureClass

简介: ESRI.ArcGIS.ADF.Web.UI.WebControls.Map mapctrl = (ESRI.ArcGIS.ADF.Web.UI.WebControls.Map) args.Control;                // Get MapFunctionality from the control.

ESRI.ArcGIS.ADF.Web.UI.WebControls.Map mapctrl = (ESRI.ArcGIS.ADF.Web.UI.WebControls.Map) args.Control;
       
        // Get MapFunctionality from the control...
        MapFunctionality mapfunc = (MapFunctionality) mapctrl.GetFunctionality(mapctrl.MapResourceManagerInstance.ResourceItems.Count - 1);
        MapResourceLocal mapres = (MapResourceLocal) mapfunc.MapResource;
        IServerContext sc = mapres.ServerContextInfo.ServerContext;
        IMapServer map = mapres.MapServer;

        IMapServerObjects mapobj = (IMapServerObjects) map;
        IMap fgmap = mapobj.get_Map(map.DefaultMapName);
        IFeatureLayer fl = (IFeatureLayer) fgmap.get_Layer(0);
        IFeatureClass fc = fl.FeatureClass;

相关文章
|
9月前
|
Java 应用服务中间件 nginx
Server
Server
34 0
|
NoSQL 关系型数据库 Shell
|
网络协议 区块链
p2p_server
以太坊系列之十九 对p2p模块server的理解 type transport interface { // The two handshakes. doEncHandshake(prv *ecdsa.
967 0
|
Linux 开发工具 Shell
|
网络协议 Shell 数据安全/隐私保护
|
数据安全/隐私保护 网络协议 网络安全