月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-09-14 8f3d45ded35c23d233b9891d3d69de2635f2a125
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
package com.moon.server.entity.data;
 
import com.moon.server.helper.WebHelper;
 
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
 
/**
 * 分析结果
 * @author WWW
 * @date 2023-09-11
 */
public class AnalysisResultEntity implements Serializable {
    private static final long serialVersionUID = -1237623414044281355L;
 
    public AnalysisResultEntity() {
        this.code = 200;
        this.minList = new ArrayList<>();
        this.avgList = new ArrayList<>();
        this.maxList = new ArrayList<>();
        this.points = new ArrayList<>();
    }
 
    /**
     * 添加点
     */
    public void addPoint(Double x, Double y, List<Double> vals) {
        Point point = new Point(x, y, vals);
        this.points.add(point);
    }
 
    /**
     * 添加Band值
     */
    public void addBandVals(double min, double avg, double max) {
        this.minList.add(WebHelper.round(min, 3));
        this.avgList.add(WebHelper.round(avg, 3));
        this.maxList.add(WebHelper.round(max, 3));
    }
 
    private String layerName;
 
    private List<Double> minList;
 
    private List<Double> avgList;
 
    private List<Double> maxList;
 
    private int code;
 
    private String info;
 
    private List<Point> points;
 
    public String getLayerName() {
        return layerName;
    }
 
    public void setLayerName(String layerName) {
        this.layerName = layerName;
    }
 
    public List<Double> getMinList() {
        return minList;
    }
 
    public void setMinList(List<Double> minList) {
        this.minList = minList;
    }
 
    public List<Double> getAvgList() {
        return avgList;
    }
 
    public void setAvgList(List<Double> avgList) {
        this.avgList = avgList;
    }
 
    public List<Double> getMaxList() {
        return maxList;
    }
 
    public void setMaxList(List<Double> maxList) {
        this.maxList = maxList;
    }
 
    public int getCode() {
        return code;
    }
 
    public void setCode(int code) {
        this.code = code;
    }
 
    public String getInfo() {
        return info;
    }
 
    public void setInfo(String info) {
        this.info = info;
    }
 
    public List<Point> getPoints() {
        return points;
    }
 
    public void setPoints(List<Point> points) {
        this.points = points;
    }
 
    public static class Point {
        private Double x;
 
        private Double y;
 
        private List<Double> vals;
 
        public Point() {
        }
 
        public Point(Double x, Double y, List<Double> vals) {
            this.x = x;
            this.y = y;
            this.vals = vals;
        }
 
        public Double getX() {
            return x;
        }
 
        public void setX(Double x) {
            this.x = x;
        }
 
        public Double getY() {
            return y;
        }
 
        public void setY(Double y) {
            this.y = y;
        }
 
        public List<Double> getVals() {
            return vals;
        }
 
        public void setVals(List<Double> vals) {
            this.vals = vals;
        }
    }
}