ricckli

viewshed calculation using arcpy

Discussion created by ricckli on Apr 1, 2011
Latest reply on Apr 5, 2011 by ricckli
dear members of this great forum:

I am trying to use the following code in python to calculate the viewshed for every point of my point-shapefile separately:
import arcpy
rows = arcpy.SearchCursor("dem_points")
row = rows.next()
while row:
     arcpy.Viewshed_3d("dem_py.tif",row, str(row.POINTID)+"_view.tif","", "CURVED_EARTH","")
     row=rows.next()


what is wrong? cannot come to the problem!

hope to get some help or suggestions,

thanks!!

Outcomes