月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-09-03 3f39280a9b2b814f883a9b578939f421dd056fef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
package com.moon.server.entity.shujian;
 
import com.moon.server.helper.StringHelper;
 
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
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 List<ImageList> image_list;
 
    /**
     * 金字塔配置
     */
    private ImageOvr image_ovr;
 
    /**
     * 创建服务
     */
    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<>();
    }
 
    public Layer getLayer() {
        return layer;
    }
 
    public void setLayer(Layer layer) {
        this.layer = layer;
    }
 
    public List<ImagePathList> getImage_path_list() {
        return image_path_list;
    }
 
    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() {
        return image_ovr;
    }
 
    public void setImage_ovr(ImageOvr image_ovr) {
        this.image_ovr = image_ovr;
    }
 
    public Integer getCreate_service() {
        return create_service;
    }
 
    public void setCreate_service(Integer create_service) {
        this.create_service = create_service;
    }
 
    /**
     * 图层信息
     */
    public class Layer {
        /**
         * 名称
         */
        private String name;
 
        /**
         * nodata设置,数组,数组大小和波段数等同
         */
        private List<String> nodata;
 
        /**
         * 投影或者坐标:EPSG:4326
         */
        private String projection;
 
        /**
         * 透明色,默认:"-1,-1,-1"
         */
        private String trans_color;
 
        /**
         * 输出波段,默认:"1,2,3"
         */
        private String tile_rgb;
 
        /**
         * 图层类型。0:普通,1:DEM图层
         */
        private Integer type;
 
        /**
         * 拉伸方式 0:不拉伸, 1 线性拉伸, 2 直方图均衡, 3 标准差拉伸, 4 伽马拉伸
         */
        private Integer enhance_type;
 
        /**
         * 直方图统计方式,0:普通,1:精细
         */
        private Integer stats_type;
 
        /**
         * 图层起始比例尺:1000000000
         */
        private Double start_scale;
 
        /**
         * 图层结束比例尺:1
         */
        private Double end_scale;
 
        /**
         * 发布信息,默认为"{}"
         */
        private Object pub_config;
 
        /**
         * 图层和影像相关的配置,默认"{}",配置内容包括但不限于:处理过程、边界控制方法
         */
        private Config config;
 
        /**
         * 拉伸因子,配合 enhance_factor使用
         */
        private String enhance_factor;
 
        /**
         * 边界计算方式 0外包,1, 内接, 2 精准
         */
        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();
        }
 
        public String getName() {
            return name;
        }
 
        public void setName(String name) {
            this.name = name;
        }
 
        public List<String> getNodata() {
            return nodata;
        }
 
        public void setNodata(List<String> nodata) {
            this.nodata = nodata;
        }
 
        public String getProjection() {
            return projection;
        }
 
        public void setProjection(String projection) {
            this.projection = projection;
        }
 
        public String getTrans_color() {
            return trans_color;
        }
 
        public void setTrans_color(String trans_color) {
            this.trans_color = trans_color;
        }
 
        public String getTile_rgb() {
            return tile_rgb;
        }
 
        public void setTile_rgb(String tile_rgb) {
            this.tile_rgb = tile_rgb;
        }
 
        public Integer getType() {
            return type;
        }
 
        public void setType(Integer type) {
            this.type = type;
        }
 
        public Integer getEnhance_type() {
            return enhance_type;
        }
 
        public void setEnhance_type(Integer enhance_type) {
            this.enhance_type = enhance_type;
        }
 
        public Integer getStats_type() {
            return stats_type;
        }
 
        public void setStats_type(Integer stats_type) {
            this.stats_type = stats_type;
        }
 
        public Double getStart_scale() {
            return start_scale;
        }
 
        public void setStart_scale(Double start_scale) {
            this.start_scale = start_scale;
        }
 
        public Double getEnd_scale() {
            return end_scale;
        }
 
        public void setEnd_scale(Double end_scale) {
            this.end_scale = end_scale;
        }
 
        public Object getPub_config() {
            return pub_config;
        }
 
        public void setPub_config(Object pub_config) {
            this.pub_config = pub_config;
        }
 
        public Config getConfig() {
            return config;
        }
 
        public void setConfig(Config config) {
            this.config = config;
        }
 
        public String getEnhance_factor() {
            return enhance_factor;
        }
 
        public void setEnhance_factor(String enhance_factor) {
            this.enhance_factor = enhance_factor;
        }
 
        public Integer getBoundary_cal_mode() {
            return boundary_cal_mode;
        }
 
        public void setBoundary_cal_mode(Integer boundary_cal_mode) {
            this.boundary_cal_mode = boundary_cal_mode;
        }
    }
 
    /**
     * 影像目录列表
     */
    public class ImagePathList {
        /**
         * 数据源:当前只能为Local
         */
        private String datasource;
 
        /**
         * 目录
         */
        private String path;
 
        /**
         * 0:不递归枷锁,1:递归检索
         */
        private Integer recursion;
 
        /**
         * 影像时间
         */
        private String image_time;
 
        /**
         * 过滤器组列表:["a.tif|b.tif"]
         */
        private List<String> filter;
 
        /**
         * 属性过滤
         */
        private Object attr_filter;
 
        public ImagePathList() {
            datasource = "Local";
            recursion = 0;
            image_time = null;
        }
 
        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 Integer getRecursion() {
            return recursion;
        }
 
        public void setRecursion(Integer recursion) {
            this.recursion = recursion;
        }
 
        public String getImage_time() {
            return image_time;
        }
 
        public void setImage_time(String image_time) {
            this.image_time = image_time;
        }
 
        public List<String> getFilter() {
            return filter;
        }
 
        public void setFilter(List<String> filter) {
            this.filter = filter;
        }
 
        public Object getAttr_filter() {
            return attr_filter;
        }
 
        public void setAttr_filter(Object attr_filter) {
            this.attr_filter = attr_filter;
        }
    }
 
    /**
     * 影像列表
     */
    public class ImageList {
        /**
         * 数据源:当前只能为Local
         */
        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 {
        /**
         * 0:集中生成和存储金字塔,1:与数据在同一目录
         */
        private Integer same_path;
 
        /**
         * 0:有金字塔忽略,1:强制删除金字塔重新创建
         */
        private Integer force_del;
 
        /**
         * 采样算法,0:最近邻,1:双线性插值,2:三次卷积,3:三次样条插值
         */
        private Integer sample_type;
 
        public ImageOvr() {
            same_path = 1;
            force_del = 0;
            sample_type = 0;
        }
 
        public Integer getSame_path() {
            return same_path;
        }
 
        public void setSame_path(Integer same_path) {
            this.same_path = same_path;
        }
 
        public Integer getForce_del() {
            return force_del;
        }
 
        public void setForce_del(Integer force_del) {
            this.force_del = force_del;
        }
 
        public Integer getSample_type() {
            return sample_type;
        }
 
        public void setSample_type(Integer sample_type) {
            this.sample_type = sample_type;
        }
    }
 
    /**
     * 颜色表配置
     */
    public class Config {
        private Process process;
 
        public Config(Integer type, List<GradientColorTableEntity> levels) {
            process = new Process(type, levels);
        }
 
        public Process getProcess() {
            return process;
        }
 
        public void setProcess(Process process) {
            this.process = process;
        }
    }
 
    /**
     * 处理层级
     */
    public class Process {
        private String uuid;
 
        private String name;
 
        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<?> levels) {
            this();
            config.put("type", type);
            config.put("levels", levels);
        }
 
        /**
         * 设置颜色表
         */
        public void SetColorTable(Integer type, List<?> levels) {
            config.put("type", type);
            config.put("levels", levels);
        }
 
        public String getUuid() {
            return uuid;
        }
 
        public void setUuid(String uuid) {
            this.uuid = uuid;
        }
 
        public String getName() {
            return name;
        }
 
        public void setName(String name) {
            this.name = name;
        }
 
        public Map<String, Object> getConfig() {
            return config;
        }
 
        public void setConfig(Map<String, Object> config) {
            this.config = config;
        }
    }
 
    /**
     * 颜色表默认配置
     */
    public class Default {
        private Short r;
 
        private Short g;
 
        private Short b;
 
        public Default() {
            r = -1;
            b = -1;
            g = -1;
        }
 
        public Short getR() {
            return r;
        }
 
        public void setR(Short r) {
            this.r = r;
        }
 
        public Short getG() {
            return g;
        }
 
        public void setG(Short g) {
            this.g = g;
        }
 
        public Short getB() {
            return b;
        }
 
        public void setB(Short b) {
            this.b = b;
        }
    }
}