/// <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)); } } }
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; }