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.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 开启编辑会话和编辑 *** 作、在表中创建行、停止编辑 *** 作以及提交编辑会话。所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)