Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

Is the person willing to deal with the consequences?

Answered: 1 week ago