月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-09-02 e898cd9ca017a6f5bfe4266fcd2830b232047bc8
src/main/java/com/moon/server/entity/shujian/CreateLayerEntity.java
@@ -518,18 +518,30 @@
        private Map<String, Object> config;
        public Process() {
            uuid = StringHelper.getGuid();
            name = "color_table";
            config = new HashMap<>();
            config.put("default", new Default());
        }
        /**
         * 处理过程
         *
         * @param type   0-默认色板,1-渐变色板
         * @param levels 层级
         */
        public Process(Integer type, List<GradientColorTableEntity> levels) {
            uuid = StringHelper.getGuid();
            name = "color_table";
        public Process(Integer type, List<?> levels) {
            this();
            config.put("type", type);
            config.put("levels", levels);
        }
            config = new HashMap<>();
            config.put("default", new Default());
        /**
         * 设置颜色表
         */
        public void SetColorTable(Integer type, List<?> levels) {
            config.put("type", type);
            config.put("levels", levels);
        }