作者djmax (閒人)
看板GIS
標題[問題] Zonal Statistics As Table的迴圈問題
時間Thu Oct 1 01:55:25 2015
小弟需要把一個資料夾下所有的 .img用 Zonal Statistics As Table產生.dbf
每個dbf的名稱用變數 %Name%.dbf去產生 如下圖
http://i.imgur.com/CYJQOu9.png
可是問題來了, 我用copy raster可以正常輸出有名稱變數 %Name% 的.img
但是在Zonal Statistics As Table那一關的output table輸入 %Name%.dbf卻卡關
我自己想出來的解決方法是等 .img全部依名稱輸出完後
另外再開一個model, 用Iterators->Raster, 把workspace指向剛剛產生.img的資料夾
Zonal Statistics As Table的output table一樣輸入 %Name%.dbf
這樣就可以正常輸出不同名稱的dbf了
但這樣就要等第一步驟做完...
實在很想讓他可以一次就自動全部跑完
請問有比較正確的做法嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.133.189.117
※ 文章網址: https://webptt.com/m.aspx?n=bbs/GIS/M.1443635727.A.081.html
1F:推 OoUNoO: 他的錯誤碼是? 01/24 19:11