日期:2014-05-17 浏览次数:20992 次
AoInitialize aoi = new AoInitializeClass ();
esriLicenseProductCode productCode= esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB;
aoi.Initialize(productCode);
public void ImportShpToSde(IFeatureClass fcShp, IWorkspace inWorkspace, IFeatureClass fcSde, Cread.Model.Regularity regularity)
{
FeatureRegularity FeatureRegularity = regularity as FeatureRegularity;
IList<Regularity> FieldRegularities = FeatureRegularity.FieldRegularityCollection;
IDictionary<string, string> fieldDic = new Dictionary<string, string>();
if (FieldRegularities != null)
{
foreach (Regularity fg in FieldRegularities)
{
Cread.Model.Field fromField = fg.from as Cread.Model.Field;
Cread.Model.Field toField = fg.to as Cread.Model.Field;
string fName = fromField.FieldName;
string tName = toField.FieldName;
if (fName != tName)
{
fieldDic.Add(fName, tName);
}
}
}
IQueryFilter queryFilter = new QueryFilterClass();
queryFilter.WhereClause = FeatureRegularity.Fil