Answers for "RuntimeError: cannot open featureclass in python"

0

RuntimeError: cannot open featureclass in python

import arcpy

infc = arcpy.GetParameterAsText(0)

# Enter for loop for each feature
for row in arcpy.da.SearchCursor(infc, ["OID@", "SHAPE@"]):
    # Print the current multipoint's ID
    print("Feature {}:".format(row[0]))

    # For each point in the multipoint feature,
    #  print the x,y coordinates
    for pnt in row[1]:
        print("{}, {}".format(pnt.X, pnt.Y))
Posted by: Guest on February-23-2021

Code answers related to "RuntimeError: cannot open featureclass in python"

Python Answers by Framework

Browse Popular Code Answers by Language