使用 IFeatureWorkspace.CreateFeatureClass() 方法,出现异常:无当前记录

百度/谷歌没有找到合适的解决之道.

而是用IFeatureWorkspace.CreateTable()方法却正常.

 

要素工作空间为AccessWorkspaceClass(),

 

原因:不明

解决方法:此段代码直接在Personal Geodatabase中新建要素类,后来改为FileGeoDatabase中新建,出现的异常提示 与空间参考相关.

后来新建FeatureDataset,在FeatureDataset设置空间参考.之后,再在FeatureDataset中新建FeatureClass.成功

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
  • 2021-04-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
相关资源
相似解决方案