I currently working on some scripts with 3D polygons using arcpy (arcgis10). Reading and data manupulation works fine, however writing the output back into a shapefile doesn't seem to work, it only generated 2D files. for writing i use the following function:
import arcpy def write_new_MP(data,outfile): array = arcpy.Array() point = arcpy.Point() features= for feature in data: for part in feature: point.X=part point.Y=part point.Z=part array.add(point) MP=arcpy.Polygon(array,None,True,True) array.removeAll() features.append(MP) arcpy.CopyFeatures_management(features, outfile,"", "0", "0", "0") return
the data is a list like
Does somebody know why the Z-values aren't used when generating the output?