AnsweredAssumed Answered

Arcpy copy feature out of path in a table?

Question asked by JB1234510 on Apr 11, 2016
Latest reply on Apr 12, 2016 by rastrauch

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)

Outcomes