Question
This is a broken script, and I cannot figure out what the problems are. When it is run, it gives an indent error. I have
This is a broken script, and I cannot figure out what the problems are. When it is run, it gives an indent error. I have tried to fix that, but not successfully.
import arcpy # Imports the arcpy module for ArcGIS
arcpy.env.workspace = "C:" # Assigns the workspace as C:
arcpy.env.overwriteOutput = True # Allows for the overwrite of any data
shp = trails.shp # Defines shp as trail.shp infile = o(properties.txt, r) # assigns the variable infile to syntax
cursor - InsertCursor(shp, [Name, "SHAPE@"]) # I think this may also be an error. I have not seen the (-) sign used in this way in ArcGIS Python PList = Array() # Assigns PList as syntax for item in infile: Segment = item.split(", ") if LName <> Segment[0]: else: # This is were the file shows an error in indentation. PList.add(point) pL = Polyine(PList) cursor.insertRow((LName, p:))
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started