年度变更建库软件5.0版本
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.

206 lines
5.4 KiB

6 months ago
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; }
/// <summary>
/// 图层名称
/// </summary>
public string LayerName { get; set; }
/// <summary>
/// 图层数据源
/// </summary>
public string LayerSource { get; set; }
/// <summary>
/// 图层类型
/// </summary>
public LayerTypeEnum LayerType { get; set; }
/// <summary>
/// 图层描述
/// </summary>
public string LayerCaption { get; set; }
/// <summary>
/// 图层父
/// </summary>
public string LayerParent { get; set; }
/// <summary>
/// 图层顺序
/// </summary>
public int LayerSort { get; set; }
/// <summary>
/// 图层是否显示
/// </summary>
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; }
/// <summary>
/// 图层数据来源 1国家监测图斑 2自主变更图斑 3无人机举证图斑
/// </summary>
public string LayerSJLY { get; set; }
/// <summary>
/// <summary>
/// 图层图标路径
/// </summary>
public string LayerIconPath { get; set; }
/// <summary>
/// 图层显示比例尺
/// </summary>
public int LayerMinScale { get; set; }
/// <summary>
/// 图层显示比例尺
/// </summary>
public int LayerMaxScale { get; set; }
/// <summary>
/// 填充颜色
/// </summary>
public Color LayerFillColor { get; set; }
/// <summary>
/// 边框颜色
/// </summary>
public Color LayerBorderColor { get; set; }
/// <summary>
/// 边框宽度
/// </summary>
public double LayerBorderWidth { get; set; }
public int LayerBorderStyle { get; set; }
/// <summary>
/// 标签大小
/// </summary>
public string LayerLableSize { get; set; }
/// <summary>
/// 标签名称
/// </summary>
public string LayerLabelName { get; set; }
/// <summary>
/// 标签颜色
/// </summary>
public Color LayerLableColor { get; set; }
/// <summary>
/// 标签显示比例尺
/// </summary>
public int LayerLableMinScale { get; set; }
/// <summary>
/// 标签显示比例尺
/// </summary>
public int LayerLableMaxScale { get; set; }
public System.Windows.Media.ImageSource ImageSource { get; set; }
/// <summary>
/// 图层路径
/// </summary>
public string LayerPath { get; set; }
/// <summary>
/// 是否举证
/// </summary>
public string SFJZ { get; set; }
public List<LayerField> Fields { get; set; }
/// <summary>
/// 图层唯一标示
/// </summary>
public string LayerID
{
get;
set;
}
/// <summary>
/// 统计选择
/// </summary>
public Hashtable Statistics
{
get;
set;
}
/// <summary>
/// 七参配置
/// </summary>
Hashtable SevenConfigure { get; set; }
/// <summary>
/// 图层信息
/// </summary>
public Kingo.Mobile.Shape2KOTool.XSDClass.ItemInfo LayerInfo { get; set; }
/// <summary>
/// 影像图层对应的表
/// </summary>
public string ImgTable { get; set; }
/// <summary>
/// mxd切片参数
/// </summary>
// public MxdParameters MxdCutParameters { get; set; }
/// <summary>
/// 影像切片参数
/// </summary>
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; }
}
}