khamasweetthing

New to python

Discussion created by khamasweetthing on Dec 20, 2011
Latest reply on Dec 21, 2011 by khamasweetthing
Can someone pls have a look at this code and tell me what is wrong with it. I am trying to use Cursors to find the length of trail within the viewshed of each nestsite; then use value table to merge line FCs to a single FC; then delete temporary datasets. Thanks much


# Import the arcgisscripting module
import sys, arcgisscripting

# Create the Geoprocessor object
gp = arcgisscripting.create()
gp.overwriteoutput = 1

# check out spatial anlayst extension
gp.checkoutextension("spatial")
gp.checkoutextension("3d")

# Set the workspace
gp.workspace = ("G:\Exercise16\Exercise16")

# Set variables for input datasets
ptFC = "nests1990.shp"
elvGrd = "elev30m"
linFC = "OldTrails.shp"

# Set variables for output dataset
outLines = "VisibleTrails.shp"

Outcomes