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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!