阅读:2071回复:3
关于CreateFeatureDataset的问题
<P>今天在编写CreateFeatureDataset功能时,出现问题:</P>
<DIV class=HtmlCode> <P>Dim iFeatureDataSet As ESRI.ArcGIS.Geodatabase.IFeatureDataset</P> <P> On Error GoTo CheckErr</P> <P> iFeatureDataSet = SDE_FeatureWS.CreateFeatureDataset(iDatasetName, iSpatialReference)<BR> Exit Sub</P> <P>CheckErr:<BR> MessageBox.Show(Err.Number ; ":" ; Err.Description, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error)<BR> Exit Sub</P></DIV> <P>出现错误 "-2147220960 "好像说是没有权限操作</P> <P>但我们买了AE的gdb读写功能的授权,在授权列表中有"gdbedit"这个权限</P> <P>也初始化了</P> <P> </P> <DIV class=HtmlCode> <P>Dim iAoInitialize As New ESRI.ArcGIS.esriSystem.AoInitialize()</P> <P> iAoInitialize.Initialize(ESRI.ArcGIS.esriSystem.esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB)<BR> </P></DIV>不知道对不对,请大家帮忙看看 |
|
1楼#
发布于:2008-04-06 14:19
<P>是License的问题吧</P>
|
|
2楼#
发布于:2008-04-01 11:01
照到错误了,只要注册engineGDB就可以了,主要问题在licenseControl,licenseControl里面注册的license全部去掉,完全用代码来注册
|
|
3楼#
发布于:2008-03-31 23:50
<P>Here is the description from <br>http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriGeoDatabase/fdoError.htm <br>for error code -2147220960: <br>The application is not licensed to create or modify schema for this type of data. <br><br>So what's going on here is that you probably don't have the Network Analyst license checked out in your standalone program. Note that your code worked in VBA because the parent application (most likely, ArcCatalog) was taking care of the licensing for you. Michael's post above shows you how to check out the Network Analyst license for your standalone application by calling IAoInitialized::CheckOutExtension() on the AoInitialize object. <br></P>
[此贴子已经被作者于2008-3-31 23:51:58编辑过]
|
|
|