文件名称:C/S生成等值线
文件大小:18KB
文件格式:CS
更新时间:2018-01-27 03:56:27
等值线
基于ArcEngine生成等值线的源码 private bool RegisterLicense() { bool isValid = false; try { if (!ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop)) { return false; } IAoInitialize aoInit = new AoInitializeClass(); if (aoInit.IsProductCodeAvailable(esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB) == esriLicenseStatus.esriLicenseAvailable) { aoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB); isValid = true; } esriLicenseStatus licenseStatus = aoInit.IsExtensionCodeAvailable(esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB, esriLicenseExtensionCode.esriLicenseExtensionCode3DAnalyst); licenseStatus = (ESRI.ArcGIS.esriSystem.esriLicenseStatus)aoInit.CheckOutExtension(esriLicenseExtensionCode.esriLicenseExtensionCode3DAnalyst); if (licenseStatus != esriLicenseStatus.esriLicenseCheckedOut) { isValid = false; } } catch (Exception ex) { log.Error("License 初始化失败:" + ex.StackTrace); isValid = false; } return isValid; }