From eb40365c9cffb2269fd3cbd31b050c33455bc84a Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 13 十一月 2024 17:44:08 +0800 Subject: [PATCH] 1 --- src/main/java/com/moon/server/entity/shujian/CreateLayerEntity.java | 200 +++++++++++++++++++++++++++++++++++--------------- 1 files changed, 140 insertions(+), 60 deletions(-) diff --git a/src/main/java/com/moon/server/entity/shujian/CreateLayerEntity.java b/src/main/java/com/moon/server/entity/shujian/CreateLayerEntity.java index d533bee..d173414 100644 --- a/src/main/java/com/moon/server/entity/shujian/CreateLayerEntity.java +++ b/src/main/java/com/moon/server/entity/shujian/CreateLayerEntity.java @@ -8,40 +8,23 @@ import java.util.List; import java.util.Map; -/** - * 鏁扮畝.鍒涘缓鍥惧眰绫� - * @author WWW - * @date 2023-08-30 - */ @SuppressWarnings("AlibabaLowerCamelCaseVariableNaming") public class CreateLayerEntity implements Serializable { private static final long serialVersionUID = 8392354493626395905L; - /** - * 鍥惧眰淇℃伅 - */ private Layer layer; - /** - * 褰卞儚鐩綍鍒楄〃 - */ private List<ImagePathList> image_path_list; - /** - * 閲戝瓧濉旈厤缃� - */ private ImageOvr image_ovr; - /** - * 鍒涘缓鏈嶅姟 - */ private Integer create_service; public CreateLayerEntity() { - create_service = 0; - layer = new Layer(); - image_ovr = new ImageOvr(); - image_path_list = new ArrayList<>(); + this.create_service = 0; + this.layer = new Layer(); + this.image_ovr = new ImageOvr(); + this.image_path_list = new ArrayList<>(); } public Layer getLayer() { @@ -76,13 +59,7 @@ this.create_service = create_service; } - /** - * 鍥惧眰淇℃伅 - */ public class Layer { - /** - * 鍚嶇О - */ private String name; /** @@ -106,7 +83,7 @@ private String tile_rgb; /** - * 鍥惧眰绫诲瀷銆�0锛氭櫘閫氾紝1锛欴EM鍥惧眰 + * 鍥惧眰绫诲瀷銆�0锛氭櫘閫氾紝1锛欴EM鍥惧眰锛�2锛氳嚜瀹氫箟 */ private Integer type; @@ -145,21 +122,37 @@ */ private Double enhance_factor; + private Integer image_type = -1; + + private Integer sat_id = -1; + + private Integer sensor_id = -1; + + //private Integer pub_status = 0; + + private String type_i = ""; + + private String type_ii = ""; + + private String type_iii = ""; + + private String type_iv = ""; + /** * 杈圭晫璁$畻鏂瑰紡 0澶栧寘锛�1锛� 鍐呮帴锛� 2 绮惧噯 */ private Integer boundary_cal_mode; public Layer() { - projection = "ESRI:104903"; - trans_color = "-1,-1,-1"; - tile_rgb = "1,2,3"; - end_scale = 1.0; - start_scale = 1048576000.0; - stats_type = 1; - enhance_type = 0; - enhance_factor = null; - boundary_cal_mode = 0; + this.projection = "ESRI:104903"; + this.trans_color = "-1,-1,-1"; + this.tile_rgb = "1,2,3"; + this.end_scale = 1.0; + this.start_scale = 1048576000.0; + this.stats_type = 1; + this.enhance_type = 0; + this.enhance_factor = null; + this.boundary_cal_mode = 0; } public String getName() { @@ -273,6 +266,62 @@ public void setBoundary_cal_mode(Integer boundary_cal_mode) { this.boundary_cal_mode = boundary_cal_mode; } + + public Integer getImage_type() { + return image_type; + } + + public void setImage_type(Integer image_type) { + this.image_type = image_type; + } + + public Integer getSat_id() { + return sat_id; + } + + public void setSat_id(Integer sat_id) { + this.sat_id = sat_id; + } + + public Integer getSensor_id() { + return sensor_id; + } + + public void setSensor_id(Integer sensor_id) { + this.sensor_id = sensor_id; + } + + public String getType_i() { + return type_i; + } + + public void setType_i(String type_i) { + this.type_i = type_i; + } + + public String getType_ii() { + return type_ii; + } + + public void setType_ii(String type_ii) { + this.type_ii = type_ii; + } + + public String getType_iii() { + return type_iii; + } + + public void setType_iii(String type_iii) { + this.type_iii = type_iii; + } + + public String getType_iv() { + return type_iv; + } + + public void setType_iv(String type_iv) { + this.type_iv = type_iv; + } } /** @@ -310,9 +359,9 @@ private Object attr_filter; public ImagePathList() { - datasource = "Local"; - recursion = 1; - filter = new ArrayList<>(); + this.datasource = "Local"; + this.recursion = 0; + this.filter = new ArrayList<>(); } public String getDatasource() { @@ -384,9 +433,9 @@ private Integer sample_type; public ImageOvr() { - same_path = 1; - force_del = 0; - sample_type = 0; + this.same_path = 1; + this.force_del = 0; + this.sample_type = 0; } public Integer getSame_path() { @@ -418,18 +467,33 @@ * 棰滆壊琛ㄩ厤缃� */ public class Config { - private Process process; + // private Process process + private Integer optm; - public Config(Integer type, List<?> levels) { - process = new Process(type, levels); + private List<Process> online_process; + + public Config(Integer colorTableId, Integer type, List<?> levels) { + Process process = new Process(colorTableId, type, levels); + this.online_process = new ArrayList<>(); + this.online_process.add(process); + + this.optm = 1; } - public Process getProcess() { - return process; + public Integer getOptm() { + return optm; } - public void setProcess(Process process) { - this.process = process; + public void setOptm(Integer optm) { + this.optm = optm; + } + + public List<Process> getOnline_process() { + return online_process; + } + + public void setOnline_process(List<Process> online_process) { + this.online_process = online_process; } } @@ -441,14 +505,17 @@ private String name; + private Integer color_table_id; + private Map<String, Object> config; public Process() { - uuid = StringHelper.getGuid(); - name = "color_table"; + this.uuid = StringHelper.getGuid(); + this.name = "color_table"; + this.color_table_id = 0; - config = new HashMap<>(); - config.put("default", new Default()); + this.config = new HashMap<>(); + this.config.put("default", new Default()); } /** @@ -457,10 +524,15 @@ * @param type 0-榛樿鑹叉澘锛�1-娓愬彉鑹叉澘 * @param levels 灞傜骇 */ - public Process(Integer type, List<?> levels) { + public Process(Integer colorTableId, Integer type, List<?> levels) { this(); - config.put("type", type); - config.put("levels", levels); + this.color_table_id = colorTableId; + + this.config.put("type", type); + this.config.put("levels", levels); + if (type > 0) { + this.config.put("gradation", "visibility"); + } } /** @@ -487,6 +559,14 @@ this.name = name; } + public Integer getColor_table_id() { + return color_table_id; + } + + public void setColor_table_id(Integer color_table_id) { + this.color_table_id = color_table_id; + } + public Map<String, Object> getConfig() { return config; } @@ -507,9 +587,9 @@ private Short b; public Default() { - r = -1; - b = -1; - g = -1; + this.r = -1; + this.b = -1; + this.g = -1; } public Short getR() { -- Gitblit v1.9.3