arcgis python 列举所有栅格ListRasters

import arcgisscripting
gp = arcgisscripting.create()

gp.workspace = "c:/DEMs"

# Get a list of grids in the workspace.
rasters = gp.ListRasters("", "GRID")

raster = rasters.next()
while raster:
    print raster
    raster = rasters.next()

posted @ 2010-01-04 16:43  闫磊博客  阅读(1028)  评论(0编辑  收藏  举报