using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;
using System.Drawing;
namespace Kingo.Plugin.MakeTaskPackage.Entity
{
[Serializable]
public class LayerEntity
{
public int LayerIndex { get; set; }
///
/// 图层名称
///
public string LayerName { get; set; }
///
/// 图层数据源
///
public string LayerSource { get; set; }
///
/// 图层类型
///
public LayerTypeEnum LayerType { get; set; }
///
/// 图层描述
///
public string LayerCaption { get; set; }
///
/// 图层父
///
public string LayerParent { get; set; }
///
/// 图层顺序
///
public int LayerSort { get; set; }
///
/// 图层是否显示
///
public bool LayerVisible { get; set; }
public string LayerWhere { get; set; }
public int CurrentIndex { get; set; }
public string LayyerGroup { get; set; }
public int LayyerGroupType { get; set; }
///
/// 图层数据来源 1国家监测图斑 2自主变更图斑 3无人机举证图斑
///
public string LayerSJLY { get; set; }
///
///
/// 图层图标路径
///
public string LayerIconPath { get; set; }
///
/// 图层显示比例尺
///
public int LayerMinScale { get; set; }
///
/// 图层显示比例尺
///
public int LayerMaxScale { get; set; }
///
/// 填充颜色
///
public Color LayerFillColor { get; set; }
///
/// 边框颜色
///
public Color LayerBorderColor { get; set; }
///
/// 边框宽度
///
public double LayerBorderWidth { get; set; }
public int LayerBorderStyle { get; set; }
///
/// 标签大小
///
public string LayerLableSize { get; set; }
///
/// 标签名称
///
public string LayerLabelName { get; set; }
///
/// 标签颜色
///
public Color LayerLableColor { get; set; }
///
/// 标签显示比例尺
///
public int LayerLableMinScale { get; set; }
///
/// 标签显示比例尺
///
public int LayerLableMaxScale { get; set; }
public System.Windows.Media.ImageSource ImageSource { get; set; }
///
/// 图层路径
///
public string LayerPath { get; set; }
///
/// 是否举证
///
public string SFJZ { get; set; }
public List Fields { get; set; }
///
/// 图层唯一标示
///
public string LayerID
{
get;
set;
}
///
/// 统计选择
///
public Hashtable Statistics
{
get;
set;
}
///
/// 七参配置
///
Hashtable SevenConfigure { get; set; }
///
/// 图层信息
///
public Kingo.Mobile.Shape2KOTool.XSDClass.ItemInfo LayerInfo { get; set; }
///
/// 影像图层对应的表
///
public string ImgTable { get; set; }
///
/// mxd切片参数
///
// public MxdParameters MxdCutParameters { get; set; }
///
/// 影像切片参数
///
public ImgParameters ImageCutParameters { get; set; }
//public LayerEntity()
//{
// this.LayerInfo = new Shape2KOTool.XSDClass.ItemInfo();
// this.MxdCutParameters = new MxdParameters();
// ImageCutParameters = new ImgParameters();
//}
}
public class ImgParameters
{
public string TilesType { get; set; }
public int TilesSize { get; set; }
public int ThreadNum { get; set; }
public int Level { get; set; }
public ImgParameters()
{
this.TilesType = "png";
this.TilesSize = 256;
this.Level = 5;
this.ThreadNum = 3;
}
}
public enum LayerTypeEnum
{
VectorGroup = 1,
TopVectorGroup = 10,
VectorLayer = 11,
ImgGroup = 2,
TopImgGroup = 20,
ImgLayer = 22,
MxdGroup = 3,
TopMxdGroup = 30,
MxdLayer = 33,
}
[Serializable]
public class LayerField
{
public string Name { get; set; }
public string Alias { get; set; }
public string FromValue { get; set; }
public int Index { get; set; }
public string FiledType { get; set; }
}
}