Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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))
Comment

PREVIOUS NEXT
Code Example
Python :: python force realod 
Python :: flatten a list of lists python 
Python :: how to navigate to a sub html script selenium python 
Python :: command to update pip 
Shell :: remove postgresql ubuntu 
Shell :: run lumen project 
Shell :: bitnami restart apache 
Shell :: bash: netstat: command not found 
Shell :: pip upgrade 
Shell :: how to install pil in anaconda 
Shell :: list process using port 
Shell :: how to restart nginx 
Shell :: zsh: command not found: rvm on terminal load 
Shell :: choco list installed 
Shell :: reinstall mysql 
Shell :: kill all docker processes force 
Shell :: how to check my ip address on wsl 
Shell :: windows flush dns 
Shell :: uninstall pytorch 
Shell :: alpine linux add nano 
Shell :: install yarn on windows 
Shell :: firewalld permanent rules 
Shell :: git apply .gitignore 
Shell :: install rclone 
Shell :: conda install numpy 
Shell :: update git version in ubuntu 
Shell :: Install / Update Dbeaver Community on Ubuntu 
Shell :: remove app ubuntu terminal 
Shell :: eslint fix 
Shell :: Update chrome using terminal in linux 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =