import arcpy from arcpy import env env.workspace = r"Database Connections\PUBS.sde" table = "pubs.dbo.XY" arcpy.MakeXYEventLayer_management(table, "X", "Y", "XY_layer", r"C:\data\test.gdb\Airports_WGS84") rows = arcpy.SearchCursor("XY_layer", "", r"C:\data\test.gdb\Airports_NAD83_feet") for row in rows: print row.shape.centroid.X, row.shape.centroid.Y del row, rows
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.