月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-09-13 d475b695564c548b0980c8c0d0d2428a2a7b112e
栅格分析结果添加坐标点位
已修改1个文件
57 ■■■■■ 文件已修改
src/main/java/com/moon/server/entity/data/AnalysisResultEntity.java 57 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/moon/server/entity/data/AnalysisResultEntity.java
@@ -2,7 +2,10 @@
import com.moon.server.helper.WebHelper;
import java.io.DataOutput;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
 * 分析结果
@@ -13,7 +16,16 @@
    private static final long serialVersionUID = -1237623414044281355L;
    public AnalysisResultEntity() {
        code = 200;
        this.code = 200;
        this.points = new ArrayList<>();
    }
    /**
     * 添加点
     */
    public void addPoint(Double x, Double y, Double val) {
        Point point = new Point(x, y, val);
        this.points.add(point);
    }
    private String layerName;
@@ -27,6 +39,8 @@
    private int code;
    private String info;
    private List<Point> points;
    public String getLayerName() {
        return layerName;
@@ -75,4 +89,45 @@
    public void setInfo(String info) {
        this.info = info;
    }
    public class Point {
        private Double x;
        private Double y;
        private Double val;
        public Point() {
        }
        public Point(Double x, Double y, Double val) {
            this.x = x;
            this.y = y;
            this.val = val;
        }
        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 Double getVal() {
            return val;
        }
        public void setVal(Double val) {
            this.val = val;
        }
    }
}