Geodatabase中逐条生成多边形

Geodatabase中逐条生成多边形
发布日期: 2016-10-06 更新日期: 1970-01-01 编辑:bukun 浏览次数: 3183

标签:
 import arcpy

# Create a polyline geometry
#
array = arcpy.Array([arcpy.Point(459111.6681, 5010433.1285),
                     arcpy.Point(472516.3818, 5001431.0808),
                     arcpy.Point(477710.8185, 4986587.1063)])
polyline = arcpy.Polyline(array)

# Open an InsertCursor and insert the new geometry
#
c = arcpy.da.InsertCursor("C:/data/texas.gdb/counties", ["SHAPE@"])
c.insertRow([polyline])

# Delete cursor object
#
del c
说明:

Geodatabase中逐条生成多边形