ArcGIS Engine进行编辑时,提示错误:Objects in this class cannot be updated outside an edit session [line_2]
来源:互联网 发布:怎么在淘宝上注册店 编辑:程序博客网 时间:2024/06/03 22:01
今天在使用IFeature 接口下的CreateFeature()方法创建要素时,报错如下图:
应该是许可或权限的问题,具体原因不明。但用下面的方法解决了问题,在此记录一下。
解决办法:在主程序main()函数中添加如下代码即可:
AoInitialize aoi = new AoInitializeClass();esriLicenseProductCode productCode = esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB;if (aoi.IsProductCodeAvailable(productCode) == esriLicenseStatus.esriLicenseAvailable) { aoi.IsProductCodeAvailable(productCode); if (aoi.Initialize(productCode) != ESRI.ArcGIS.esriSystem.esriLicenseStatus.esriLicenseCheckedOut) DevExpress.XtraEditors.XtraMessageBox.Show(",请检查ArcEngine中的GDBEdit许可!"); }else { DevExpress.XtraEditors.XtraMessageBox.Show(",请检查ArcEngine中的GDBEdit许可!"); }
阅读全文
0 0
- ArcGIS Engine进行编辑时,提示错误:Objects in this class cannot be updated outside an edit session [line_2]
- 'Objects in this class cannot be updated outside an edit session'
- VS2008+AE 提示This control requires an ArcGIS Engine Developer Kit license
- Arcgis---this control requires an arcgis engine developer kit license
- SQL 2005 建立数据库图表时出现以下错误Database diagram support objects cannot be installed because this database does not have a valid owner 解决
- yii提示The table "xxx" for active record class "DistAR" cannot be found in the database
- 错误提示:Multiple annotations found at this line: basePath cannot be resolved to a variable
- ArcGIS Engine 编辑- IEngineEditor
- ArcGIS Engine 编辑介绍
- ArcGIS Engine 编辑- IWorkspaceEdit
- ArcGIS Engine 编辑- ITask
- ArcGIS Engine 编辑- IEngineEditor
- 错误:The import java.util.Objects cannot be resolved
- this content cannot be dispalyed in a frame 错误 在tomca中设置x-frame-options
- Propert 'c' cannot be found in forward class object 'CALayer *错误解决
- UIView CALayer 属性不显示错误 Property cannot be found in forward class object 'CALayer
- Property xxx cannot be found in forward class object "XXXXX" 错误
- UIView CALayer属性不显示错误 Property cannot be found in forward class object 'CALayer'
- 在node下使用webpack构建react开发环境
- JS内存泄漏笔记
- 关于join函数和split函数
- 项目中遇到的问题
- Python安装rar解压包(for Arcgis篇)
- ArcGIS Engine进行编辑时,提示错误:Objects in this class cannot be updated outside an edit session [line_2]
- eclipse中合并svn代码 -- 将分支branch上的代码合并到主干trunk上
- JS日期格式化,拿到时间段日期
- xml基础知识(1)
- [Leetcode] 283. Move Zeroes 解题报告
- c\c++ 输入输出
- Hadoop的分布式架构改进与应用
- xmpp的XmppConnection类
- C++ 标准函数库 —— 文件的输入输出 (Input/Output with files)