Arcpy copy feature out of path in a table?

2863
11
Jump to solution
04-11-2016 05:22 AM
JohannesBierer
Occasional Contributor III

I've a table with paths like:

R:\Daten\geo_daten\GEOLOGIE\bodenuebersicht\daten\arcview\bodeneigenschaften\shape\bodeneigenschaften.shp

and want to copy this Feature somewhere else and delete in the location where it is?

What's wrong?

import arcpy, numpy
arcpy.env.overwriteOutput = True
InPath = r"R:\Karto\Geodaten_Archiv.txt"
OutPath = r"R:\Daten\geo_daten\geodaten_archiv\SIC_2016_04_07"
filename = open(InPath, 'r')
arr = arcpy.da.TableToNumPyArray(InPath, "Datenpfad")
for line in arr:
    print line
    arcpy.CopyFeatures_management(line, OutPath)
0 Kudos
11 Replies
TimothyHales
Esri Notable Contributor

I changed it over to a questions (Actions > Convert to Question). I'll add in some documentation to our Community Help on how to do this. Thanks!

RebeccaStrauch__GISP
MVP Emeritus

Thanks Timothy.  That would be a good topic to add.

Johannes Bierer ...now you can mark one of the comments as "the answer", and if you haven't already, mark those that helped you as "helpful"

0 Kudos