























import arcgisscripting
gp = arcgisscripting.create()
# Create update cursor for feature class
rows = gp.UpdateCursor("D:/St_Johns/data.mdb/roads")
row = rows.Next()
# Update the field used in buffer so the distance is based on the road
# type. Road type is either 1, 2, 3 or 4. Distance is in meters.
while row:
row.buffer_distance = row.road_type * 100
rows.UpdateRow(row)
row = rows.Next()
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。