Arcengine二次開發gp呼叫

2022-07-31 19:15:16 字數 1649 閱讀 7758

一、呼叫gp(以融合為例)

public static void dissolve(ifeatureclass in_features, string out_feature_class, string field, string statistics_fields, string multi_part)

],...]

diss.statistics_fields = statistics_fields;

diss.multi_part = multi_part;

gp.execute(diss, null);

二、多個引數傳入gp呼叫,並返回計算結果

public static ifeatureclass union(ifeatureclass in_features1, ifeatureclass in_features2 )

三、gp呼叫python生成的自定義工具

python發布要素服務鏈結轉)

//toolboxpath自定義工具路徑

//mxdpath、serverusername、serverpassword、mxdfilename、serverurlpath、servername自定義工具箱引數(依據自己gp工具而定)

public bool pblish(string toolboxpath, object mxdpath, string serverusername, string serverpassword, string mxdfilename, object serverurlpath, string servername)

catch

return mark;

}符地圖服務發布python(發布服務為wfs)

newsddraft='updateddraft.sddraft'

doc = dom.parse(sddraft)

typenames = doc.getelementsbytagname('typename')

for typename in typenames:

if typename.firstchild.data == 'wfsserver':

typename.parentnode.getelementsbytagname('enabled')[0].firstchild.data = 'true'

f = open(newsddraft, 'w')

doc.writexml(f)

f.close()

#stage and upload the service if the sddraft analysis didn't contain errors

if analysis['errors'] == {}:

# excute stageservice

arcpy.stageservice_server(newsddraft,sd)

# excute uploadservicedfinition

arcpy.uploadservicedefinition_server(sd,connectionfile)

else:

# if the sddraft analysis contained errors,display them

print analysis['errors']

ArcGis二次開發ArcEngine開篇

以一款簡單gis軟體截引入本篇內容 萬事開頭難,如何利用arcengine開發一款gis產品呢?一款簡單的gis軟體基本布局如上圖所示,共劃分為六個區域,分別是選單欄區,工具欄區,地圖 圖層樹管理區,地圖 圖層顯示區以及布局 製版 區。這幾個布局區域都是用arcengine提供的控制項實現的 除選單...

postek二次開發 POSTEK二次開發介面

例項簡介 例項截圖 核心 using system using system.collections.generic using system.componentmodel using system.data using system.drawing using system.text using ...

mcms二次開發 YzmCMS二次開發手冊

摘要 yzmcms是採用mvc設計模式開發,基於模組和操作的方式進行訪問,採用單一入口模式進行專案部署和訪問,無論訪問任何乙個模組或者功能,只有一.yzmcms是採用mvc設計模式開發,基於模組和操作的方式進行訪問,採用單一入口模式進行專案部署和訪問,無論訪問任何乙個模組或者功能,只有乙個統一的入口...