Пример #1
0
 /// <summary>
 /// 拷贝属性字段 this.Fields->tpObjectZHFeature.Fields
 /// </summary>
 /// <param name="tpObjectZHFeature"></param>
 public virtual void CopyField(ref ZhFeature tpObjectZHFeature)
 {
     //属性
     this.preGetFeatureFieldNames();
     foreach (string fdName in this.FieldNames)
     {
         if (fdName != "OBJECTID" &&
             fdName != "FID" &&
             this.getFieldValue(fdName) != null)
         {
             tpObjectZHFeature.setFieldValue(fdName, this.getFieldValue(fdName));
         }
     }
 }
Пример #2
0
        public virtual void Update(ZhFeature pZHFeat, string fieldNames, object[] objValues)
        {
            if (pZHFeat == null)
            {
                return;
            }

            string[] FNamesArray = null;
            FNamesArray = fieldNames.Split(new char[] { ',' });

            for (int i = 0; i < FNamesArray.Length; i++)
            {
                pZHFeat.setFieldValue(FNamesArray[i], objValues[i]);
            }
            pZHFeat.SaveFeature();
            FNamesArray = null;
        }