import arcpy, csv, os from arcpy import env env.overwriteOutput = True infile = "U:\Tax\Special Projects\JEFitzgerald\CUVA\Test\XY_EVENT_.csv" point = arcpy.Point() array = arcpy.Array() featureList= [] curXY = arcpy.da.SearchCursor(infile, ["X","Y"]) for row in curXY: X = float (row[1]) Y = float (row[0]) highX = X+ 148.7 highY = Y + 134.5 array = arcpy.Array([arcpy.Point(X, Y), arcpy.Point(highX, Y), arcpy.Point(highX, highY), arcpy.Point(X, highY), arcpy.Point(X, Y)]) polygon = arcpy.Polygon(array) featureList.append(polygon) arcpy.CopyFeatures_management(featureList, "U:\Tax\Special Projects\JEFitzgerald\CUVA\Test\Test_CUVA.gdb\Poly33") print arcpy.GetMessages()
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.