Tengo un problema al utilizar el in_memory
en un script de Python.
Tengo un archivo shapefile test.shp
con 3 campos (Alter, Geschlecht, Anzahl) y 2 filas de datos. Cuando utilizo arcpy.CopyFeatures_management
para copiar el archivo shapefile en in_memory
borra los datos de las filas.
Escribí un pequeño guión de prueba:
import arcpy
arcpy.env.workspace = "C:\\Python\\"
arcpy.CopyFeatures_management("test.shp","in_memory/test")
arcpy.CopyFeatures_management("in_memory/test", "test1.shp")
arcpy.CopyFeatures_management("test.shp","test2.shp")
Puede descargar los shapefiles aquí: https://www.dropbox.com/sh/b47og9rjfevpi7v/AAB_YLz1l_eY3b-lFJPm9kP9a?dl=0
test1.shp
está vacío (las filas siguen aquí pero sin datos) y test2.shp
es una copia correcta.
¿Puede alguien decirme qué está fallando?