You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
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; } }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 变更行为
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string BGXW { get { return m_BGXW; } }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 行政区代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string XZQDM { get { return m_XZQDM; } }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 行政区名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string XZQMC { get { return m_XZQMC; } }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 调查面积
|
|
|
|
|
/// </summary>
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|