From 91f693e9fb8e2b85ba667398fc5c2e67d4f0676f Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 13 九月 2023 17:17:05 +0800 Subject: [PATCH] 添加根据图层id查询发布值 --- src/main/java/com/moon/server/entity/shujian/CreateLayerEntity.java | 193 +++++++++++++++++++----------------------------- 1 files changed, 77 insertions(+), 116 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 da71ab6..ff59cce 100644 --- a/src/main/java/com/moon/server/entity/shujian/CreateLayerEntity.java +++ b/src/main/java/com/moon/server/entity/shujian/CreateLayerEntity.java @@ -28,11 +28,6 @@ private List<ImagePathList> image_path_list; /** - * 褰卞儚鍒楄〃 - */ - private List<ImageList> image_list; - - /** * 閲戝瓧濉旈厤缃� */ private ImageOvr image_ovr; @@ -43,11 +38,10 @@ private Integer create_service; public CreateLayerEntity() { - create_service = 0; - layer = new Layer(); - image_ovr = new ImageOvr(); - image_list = new ArrayList<>(); - 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() { @@ -64,14 +58,6 @@ public void setImage_path_list(List<ImagePathList> image_path_list) { this.image_path_list = image_path_list; - } - - public List<ImageList> getImage_list() { - return image_list; - } - - public void setImage_list(List<ImageList> image_list) { - this.image_list = image_list; } public ImageOvr getImage_ovr() { @@ -102,7 +88,7 @@ /** * nodata璁剧疆锛屾暟缁勶紝鏁扮粍澶у皬鍜屾尝娈垫暟绛夊悓 */ - private List<String> nodata; + private List<Integer> nodata; /** * 鎶曞奖鎴栬�呭潗鏍囷細EPSG:4326 @@ -115,7 +101,7 @@ private String trans_color; /** - * 杈撳嚭娉㈡锛岄粯璁わ細"1,2,3" + * 杈撳嚭娉㈡锛岄粯璁わ細"1,2,3"锛屾垨涓�"3,2,1" */ private String tile_rgb; @@ -147,7 +133,7 @@ /** * 鍙戝竷淇℃伅锛岄粯璁や负"{}" */ - private Object pub_config; + private String pub_config; /** * 鍥惧眰鍜屽奖鍍忕浉鍏崇殑閰嶇疆锛岄粯璁�"{}"锛岄厤缃唴瀹瑰寘鎷絾涓嶉檺浜庯細澶勭悊杩囩▼銆佽竟鐣屾帶鍒舵柟娉� @@ -157,7 +143,7 @@ /** * 鎷変几鍥犲瓙锛岄厤鍚� enhance_factor浣跨敤 */ - private String enhance_factor; + private Double enhance_factor; /** * 杈圭晫璁$畻鏂瑰紡 0澶栧寘锛�1锛� 鍐呮帴锛� 2 绮惧噯 @@ -165,12 +151,15 @@ private Integer boundary_cal_mode; public Layer() { - end_scale = 1.0; - start_scale = 1000000000.0; - stats_type = 1; - enhance_type = 0; - boundary_cal_mode = 0; - pub_config = new Object(); + 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() { @@ -181,11 +170,11 @@ this.name = name; } - public List<String> getNodata() { + public List<Integer> getNodata() { return nodata; } - public void setNodata(List<String> nodata) { + public void setNodata(List<Integer> nodata) { this.nodata = nodata; } @@ -253,11 +242,11 @@ this.end_scale = end_scale; } - public Object getPub_config() { + public String getPub_config() { return pub_config; } - public void setPub_config(Object pub_config) { + public void setPub_config(String pub_config) { this.pub_config = pub_config; } @@ -269,11 +258,11 @@ this.config = config; } - public String getEnhance_factor() { + public Double getEnhance_factor() { return enhance_factor; } - public void setEnhance_factor(String enhance_factor) { + public void setEnhance_factor(Double enhance_factor) { this.enhance_factor = enhance_factor; } @@ -321,8 +310,9 @@ private Object attr_filter; public ImagePathList() { - datasource = "Local"; - recursion = 0; + this.datasource = "Local"; + this.recursion = 0; + this.filter = new ArrayList<>(); } public String getDatasource() { @@ -375,66 +365,6 @@ } /** - * 褰卞儚鍒楄〃 - */ - public class ImageList { - /** - * 鏁版嵁婧愶細褰撳墠鍙兘涓篖ocal - */ - private String datasource; - - /** - * 褰卞儚鐩綍 - */ - private String path; - - /** - * 褰卞儚鏃堕棿 - */ - private String image_time; - - /** - * 灞炴�ц繃婊� - */ - private Object attr_filter; - - public ImageList() { - } - - public String getDatasource() { - return datasource; - } - - public void setDatasource(String datasource) { - this.datasource = datasource; - } - - public String getPath() { - return path; - } - - public void setPath(String path) { - this.path = path; - } - - public String getImage_time() { - return image_time; - } - - public void setImage_time(String image_time) { - this.image_time = image_time; - } - - public Object getAttr_filter() { - return attr_filter; - } - - public void setAttr_filter(Object attr_filter) { - this.attr_filter = attr_filter; - } - } - - /** * 閲戝瓧濉旈厤缃� */ public class ImageOvr { @@ -454,9 +384,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() { @@ -488,18 +418,33 @@ * 棰滆壊琛ㄩ厤缃� */ public class Config { - private Process process; + // private Process process + private Integer optm; - public Config(Integer type, List<GradientColorTableEntity> 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; } } @@ -511,14 +456,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()); } /** @@ -527,10 +475,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"); + } } /** @@ -557,6 +510,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; } @@ -577,9 +538,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