<< Click to Display Table of Contents >>

RunProcess
使用toolkit工具,處理地理資料的方法
語法:
RunProcess (group_name, process_name,…..)
參數 |
說明 |
參數類型 |
group_name |
要使用工具的群組 |
字串 |
process_name |
要使用工具的名稱 |
字串 |
…. |
依所選定的使用工具,決定要輸入給使用工具的參數有幾個 |
字串 |
RunProcess使用範例
import sgpy #呼叫toolkit buffer工具 input = "D:/temp/Line2.shp" output = "D:/ temp/test.shp" #buffer工具使用 (第一個參數為:buffer所屬工具群組, 第二個為buffer工具名稱) #(所需參數:輸入檔案,buffer半徑,環域繪製範圍,融合類型,輸出路徑) result = sgpy.RunProcess('Analysis Tools','Buffer',input,'50','FULL','None',output) |
©2015 Supergeo Technologies Inc. All rights reserved.