using ESRI.ArcGIS.Geodatabase; using ESRI.ArcGIS.Geometry; using KGIS.Framework.AE.ExtensionMethod; using System; namespace Kingo.Plugin.BoundaryReadjust.EntityModel { public class XZQInfo { private string m_BGXW; private string m_XZQDM; private string m_XZQMC; private double m_Area; private IGeometry m_Shape; private IFeature m_AttrSourceFeature; public IFeature AttrSourceFeature { get { return m_AttrSourceFeature; } } /// /// 变更行为 /// public string BGXW { get { return m_BGXW; } } /// /// 行政区代码 /// public string XZQDM { get { return m_XZQDM; } } /// /// 行政区名称 /// public string XZQMC { get { return m_XZQMC; } } /// /// 调查面积 /// public double Area { get { return Math.Round(m_Area, 2); } } public IGeometry Shape { get { return m_Shape; } } public XZQInfo() { } public XZQInfo(IGeometry pGeo) { m_Shape = pGeo; } public void SetAttrSourceFeature(IFeature pFeature) { m_AttrSourceFeature = pFeature; } public void SetShape(IGeometry pGeo) { m_Shape = pGeo; } public void CalculationArea() { m_Area = (m_Shape as IPolygon).GetEllipseArea(); } public void SetArea(double pArea) { m_Area = pArea; } public void SetBGXW(string pBGXW) { m_BGXW = pBGXW; } public void SetXZQDM(string pXZQDM) { m_XZQDM = pXZQDM; } public void SetXZQMC(string pXZQMC) { m_XZQMC = pXZQMC; } } }