From d475b695564c548b0980c8c0d0d2428a2a7b112e Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 13 九月 2023 15:15:40 +0800
Subject: [PATCH] 栅格分析结果添加坐标点位

---
 src/main/java/com/moon/server/entity/data/AnalysisResultEntity.java |   57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 56 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/moon/server/entity/data/AnalysisResultEntity.java b/src/main/java/com/moon/server/entity/data/AnalysisResultEntity.java
index 5087b4d..d73a689 100644
--- a/src/main/java/com/moon/server/entity/data/AnalysisResultEntity.java
+++ b/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;
+        }
+    }
 }

--
Gitblit v1.9.3