ArcGIS里面新建数据集,看起来简单,平时都是默认创建,实际上好多细节问题我们都没注意到 一.在数据集上新建要素类: How to create a feature class within a feature dataset http://edndoc.esri.com/arcobjects/9.2/NET/0b614f08-461a-4d63-bbcd-1c633a7886ba.htm How to create a stand-alone feature class in a geoda
#方法一:cursor= arcpy.da.SearchCursor(aim_fc,["OID@","SHAPE@"]) for row in cursor: arcpy.CopyFeatures_management(row[1],gdbPath+"\\fc_"+str(row[0])) del cursor 方法二: https://www.cnblogs.com/yzhyingcool/p/10274368.html
import arcpy infc = arcpy.GetParameterAsText(0) # Identify the geometry field # desc = arcpy.Describe(infc) shapefieldname = desc.ShapeFieldName # Create search cursor # rows = arcpy.SearchCursor(infc) # Enter for loop for each feature/row # for row