I have a polygon feature class that i am looping through row by row. I want to take each row/record and create it into its own Polygon Geometry or Shapefile/FeatureLayer using WKT
PolygonGeometry Attempt:
summary = 'fc'
for row in arcpy.da.SearchCursor(summary, ["SHAPE@"]):
wellknown = row[0].WKT
arcpy.Polygon(wellknown)
I have tried
arcpy.Polygon(*[wellknown])
also
arcpy.Polygon(arcpy.Array([arcpy.Point(*wellknown)]))
Traceback (most recent call last):
File "C:\Users\rzagha\Desktop\RTK\python\FreighMunicipality.py", line 121, in <module>
hm = arcpy.Polygon(arcpy.Array([arcpy.Point(*wkt)]))
TypeError: __init__() takes at most 6 arguments (36467 given)
whats the correct syntax to create a polygon geometry from WKT and is there an easier way to create a featurelayer or shapefile from current row/record within the for loop like
arcpy.MakeFeatureLayer_management(row[0], "zone")
or
arcpy.MakeFeatureLayer_management(row[0].wkt, "zone")