阅读:5650回复: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> |
|