arcpy.env.workspace = r'\\ccasr\users\gis\My Documents\ArcGIS\Default.gdb'
arcpy.CalculateField_management("in_memory\\test", "ACRES", "SHAPE.AREA@ACRES", "PYTHON")
>>> import arcpy >>> ws = 'in_memory' >>> cad = r'G:\Data\Geodatabase\Cedar_County.gdb\JURISDICTION\CORP_LIM' >>> arcpy.CopyFeatures_management(cad, r'in_memory\corp') <Result 'in_memory\\corp'> >>> corp = r'in_memory\corp' >>> with arcpy.da.SearchCursor(corp, ['SHAPE@AREA']) as rows: for row in rows: print row[0] 29602027.3534 5743768.43532 21250061.0234 1176983.15619 23122043.9827 29591444.8893 21709630.032 66368156.0184 56180139.9378
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.