arcgis python 获得消息的个数

import arcgisscripting
gp = arcgisscripting.create()

gp.workspace = "H:/Forestry"
gp.toolbox = "analysis"

gp.clip("final_forest/polygon", "clipcov/polygon", "output.shp", "1.25")

y = gp.messagecount
x = 0
while x < y:
    print gp.getmessage(x)
    x = x + 1
posted @ 2010-01-04 16:37  闫磊博客  阅读(299)  评论(0编辑  收藏  举报