阅读:5898回复:6
高手请进shp2SDE问题
<P> 欢迎光临,第一次在这里发言,我是个GIS freshman ,各位大哥大姐,多多关照小弟,我最近在做将用AE不用desktop将shape文件导入 SDE 但是总是出现"The application is not licensed to create or modify schema for this type of data"如下的错误,代码我看了很多编,没有问题,在网上查了一下,说是ArcInfo License或者是什么解密狗问题,这些我都试了,但是都不行,请高手显身解决。。。。期待中。。。。。</P>
|
|
1楼#
发布于:2007-06-21 11:52
<P>自己前来结帖哈哈,今天心情不错,虽然昨晚3点多才睡觉,关于上面的问题我曾多方求证,最近ESRI社区里面有个高人提醒了啊!真是的,自己到现在还没发现,之前我写了一个方法:</P>
<P>private string GetDeploymentName()<BR> {<BR> string strReturn="";<BR> IESRILicenseInfo pLicense=new ESRILicenseInfoClass();<BR> switch (pLicense.DefaultProduct)<BR> {<BR> case ESRI.ArcGIS.esriSystem.esriProductCode.esriProductCodeProfessional:<BR> strReturn = "ArcInfo";<BR> break;<BR> case ESRI.ArcGIS.esriSystem.esriProductCode.esriProductCodeViewer:<BR> strReturn= "ArcView";<BR> break;<BR> case ESRI.ArcGIS.esriSystem.esriProductCode.esriProductCodeEditor:<BR> strReturn= "ArcEditor";<BR> break;<BR> }<BR> return strReturn;<BR> }</P> <P>是判断许可的信息的,但是每次出来的都是ArcView我很纳闷啊!!于是我就看将前面的初始化许可的代码更换了位置 具体代码如下:</P> <P> if (CheckOutLicenses(esriLicenseProductCode.esriLicenseProductCodeArcInfo) != esriLicenseStatus.esriLicenseCheckedOut)<BR> if (CheckOutLicenses(esriLicenseProductCode.esriLicenseProductCodeArcView) != esriLicenseStatus.esriLicenseCheckedOut)<BR> if (CheckOutLicenses(esriLicenseProductCode.esriLicenseProductCodeArcEditor) != esriLicenseStatus.esriLicenseCheckedOut)<BR> if (CheckOutLicenses(esriLicenseProductCode.esriLicenseProductCodeEngine) != esriLicenseStatus.esriLicenseCheckedOut)<BR> {<BR> System.Windows.Forms.MessageBox.Show("初始化失败,程序无法运行!");<BR> this.Close();<BR> }</P> <P>再次运行程序,提示就变成了ArcInfo哈哈,也就行了啊 哈哈</P> |
|
2楼#
发布于:2007-06-27 14:23
<img src="images/post/smile/dvbbs/em03.gif" />
|
|
3楼#
发布于:2007-12-12 15:18
<P>我这几天也遇到了这个问题</P>
<P>是做同样功能的时候</P> <P>但是不知道是什么原因</P> <P>我没有看明白你的意思</P> <P>用什么方法才能解决这个问题呢</P> |
|
4楼#
发布于:2008-02-19 12:06
<P>我这也是同样的问题,用AE建立featureDataste,将shape文件导入SDE ,但在CreateFeatureDataset函数时抛出这个异常,不知道怎么解决啊。</P>
|
|
|
5楼#
发布于:2008-04-14 19:12
<img src="images/post/smile/dvbbs/em01.gif" /><img src="images/post/smile/dvbbs/em01.gif" />
|
|
6楼#
发布于:2009-12-14 00:10
<P>楼主说的方法没有效果的,我也找了半天的资料最后终于被我发现解决的方法.</P>
<P>其实很简单,只要把ArcGIS Desktop Administator的software product中选择成Arcinfo就可以了.现在就拥有最高的权限了.初始化根本没用的.</P> |
|
|