arcgis python 开启编辑会话和编辑 *** 作、在表中创建行、停止编辑 *** 作以及提交编辑会话。

arcgis python 开启编辑会话和编辑 *** 作、在表中创建行、停止编辑 *** 作以及提交编辑会话。,第1张

概述import arcpyimport osfc = ‘Database Connections/Portland.sde/portland.jgp.schools‘workspace = os.path.dirname(fc)# Start an edit session. Must provide the worksapce.edit = arcpy.da.Edito
import arcpyimport osfc = Database Connections/Portland.sde/portland.jgp.schoolsworkspace = os.path.dirname(fc)# Start an edit session. Must provIDe the worksapce.edit = arcpy.da.Editor(workspace)# Start an edit operationedit.startoperation()# Edit session is started without an undo/redo stack for versioned data#  (for second argument,use False for unversioned data)edit.startEditing(False,True)# Insert a row into the table.with arcpy.da.InsertCursor(fc,([email protected],name)) as icur:    icur.insertRow([(7642471.100,686465.725),New School])# Stop the edit operation.edit.stopOperation()# Stop the edit session and save the changesedit.stopEditing(True)
总结

以上是内存溢出为你收集整理的arcgis python 开启编辑会话和编辑 *** 作、在表中创建行、停止编辑 *** 作以及提交编辑会话。全部内容,希望文章能够帮你解决arcgis python 开启编辑会话和编辑 *** 作、在表中创建行、停止编辑 *** 作以及提交编辑会话。所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/1191764.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-03
下一篇 2022-06-03

发表评论

登录后才能评论

评论列表(0条)

保存