月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-09-13 43b117a39fb4096d299c911a7ca0a304965f4f5c
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() {
@@ -165,13 +151,15 @@
        private Integer boundary_cal_mode;
        public Layer() {
            trans_color = "-1,-1,-1";
            end_scale = 1.0;
            start_scale = 1000000000.0;
            stats_type = 1;
            enhance_type = 0;
            enhance_factor = 0.02;
            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() {
@@ -322,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() {
@@ -376,67 +365,6 @@
    }
    /**
     * 影像列表
     */
    public class ImageList {
        /**
         * 数据源:当前只能为Local
         */
        private String datasource;
        /**
         * 影像目录
         */
        private String path;
        /**
         * 影像时间
         */
        private String image_time;
        /**
         * 属性过滤
         */
        private String attr_filter;
        public ImageList() {
            datasource = "Local";
        }
        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 String getAttr_filter() {
            return attr_filter;
        }
        public void setAttr_filter(String attr_filter) {
            this.attr_filter = attr_filter;
        }
    }
    /**
     * 金字塔配置
     */
    public class ImageOvr {
@@ -456,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() {
@@ -490,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;
        }
    }
@@ -513,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());
        }
        /**
@@ -529,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");
            }
        }
        /**
@@ -559,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;
        }
@@ -579,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() {