From 3417cf014a65765e02696c1d121ce58b2b4a8aed Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 08 四月 2025 15:55:36 +0800
Subject: [PATCH] 修改pom.xml

---
 src/main/java/com/se/simu/domain/po/DataPo.java |  135 ++++++++++++++++++++++++++++++--------------
 1 files changed, 92 insertions(+), 43 deletions(-)

diff --git a/src/main/java/com/se/simu/domain/po/DataPo.java b/src/main/java/com/se/simu/domain/po/DataPo.java
index 06316b6..d962bda 100644
--- a/src/main/java/com/se/simu/domain/po/DataPo.java
+++ b/src/main/java/com/se/simu/domain/po/DataPo.java
@@ -1,14 +1,18 @@
 package com.se.simu.domain.po;
 
+import com.alibaba.fastjson.annotation.JSONField;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.se.simu.helper.GdalHelper;
 import io.swagger.annotations.ApiModelProperty;
+import org.gdal.osr.SpatialReference;
 
-/**
- * 浠跨湡鏁版嵁瀹炰綋绫�
- *
- * @author WWW
- * @date 2024-09-18
- */
+import java.util.Date;
+
+@SuppressWarnings("ALL")
 public class DataPo {
+    @ApiModelProperty("鐖禝D")
+    private Integer pid;
+
     @ApiModelProperty("鍚嶇О")
     private String name;
 
@@ -17,6 +21,11 @@
 
     @ApiModelProperty("杈撳嚭璺緞")
     private String outPath;
+
+    @ApiModelProperty("寮�濮嬫椂闂�")
+    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date startTime;
 
     @ApiModelProperty("鏈�灏廥")
     private Double minx;
@@ -45,25 +54,38 @@
     @ApiModelProperty("闃叉睕缁撴潫鏃堕棿(绉�)")
     private Integer floodEnd;
 
-    @ApiModelProperty("闃叉睕鑼冨洿(minx,miny,maxx,maxy)")
-    private String floodBbox;
-
     @ApiModelProperty("闃叉睕楂樺害(mm)")
     private Double floodHeight;
 
     @ApiModelProperty("闃叉睕绫诲瀷(娌欒锛岄槻姘存澘)")
     private String floodType;
 
+    @ApiModelProperty("闃叉睕鏈�灏廥")
+    private Double floodMinx;
+
+    @ApiModelProperty("闃叉睕鏈�灏廦")
+    private Double floodMiny;
+
+    @ApiModelProperty("闃叉睕鏈�澶")
+    private Double floodMaxx;
+
+    @ApiModelProperty("闃叉睕鏈�澶")
+    private Double floodMaxy;
+
+    @ApiModelProperty("鍧愭爣绯籌D")
+    private Integer epsg;
+
     public DataPo() {
     }
 
-    public DataPo(String name, String inPath, String outPath, Double total, Integer duration, Integer isFlood) {
-        this.name = name;
+    public void setPath(String inPath, String outPath) {
         this.inPath = inPath;
         this.outPath = outPath;
-        this.total = total;
-        this.duration = duration;
-        this.isFlood = isFlood;
+    }
+
+    public String getBbox() {
+        // "116.64388473935195,39.884315914604464,116.64754729082588,39.887069143903496";
+        return minx + "," + miny + "," + maxx + "," + maxy;
     }
 
     public DataPo(String name, String inPath, String outPath, Double minx, Double miny, Double maxx, Double maxy, Double total, Integer duration) {
@@ -78,29 +100,12 @@
         this.duration = duration;
     }
 
-    public boolean setExtent(Double minx, Double miny, Double maxx, Double maxy) {
-        this.minx = minx;
-        this.miny = miny;
-        this.maxx = maxx;
-        this.maxy = maxy;
-
-        return true;
+    public Integer getPid() {
+        return pid;
     }
 
-    public DataPo(Integer floodStart, Integer floodEnd, Double minx, Double miny, Double maxx, Double maxy, Double floodHeight, String floodType) {
-        this.isFlood = 1;
-        this.floodStart = floodStart;
-        this.floodEnd = floodEnd;
-        this.floodBbox = minx + "," + miny + "," + maxx + "," + maxy;
-        this.floodHeight = floodHeight;
-        this.floodType = floodType;
-    }
-
-    public boolean setFloodExtent(Double minx, Double miny, Double maxx, Double maxy) {
-        this.isFlood = 1;
-        this.floodBbox = minx + "," + miny + "," + maxx + "," + maxy;
-
-        return true;
+    public void setPid(Integer pid) {
+        this.pid = pid;
     }
 
     public String getName() {
@@ -125,6 +130,14 @@
 
     public void setOutPath(String outPath) {
         this.outPath = outPath;
+    }
+
+    public Date getStartTime() {
+        return startTime;
+    }
+
+    public void setStartTime(Date startTime) {
+        this.startTime = startTime;
     }
 
     public Double getMinx() {
@@ -199,14 +212,6 @@
         this.floodEnd = floodEnd;
     }
 
-    public String getFloodBbox() {
-        return floodBbox;
-    }
-
-    public void setFloodBbox(String floodBbox) {
-        this.floodBbox = floodBbox;
-    }
-
     public Double getFloodHeight() {
         return floodHeight;
     }
@@ -222,4 +227,48 @@
     public void setFloodType(String floodType) {
         this.floodType = floodType;
     }
+
+    public Double getFloodMinx() {
+        return floodMinx;
+    }
+
+    public void setFloodMinx(Double floodMinx) {
+        this.floodMinx = floodMinx;
+    }
+
+    public Double getFloodMiny() {
+        return floodMiny;
+    }
+
+    public void setFloodMiny(Double floodMiny) {
+        this.floodMiny = floodMiny;
+    }
+
+    public Double getFloodMaxx() {
+        return floodMaxx;
+    }
+
+    public void setFloodMaxx(Double floodMaxx) {
+        this.floodMaxx = floodMaxx;
+    }
+
+    public Double getFloodMaxy() {
+        return floodMaxy;
+    }
+
+    public void setFloodMaxy(Double floodMaxy) {
+        this.floodMaxy = floodMaxy;
+    }
+
+    public Integer getEpsg() {
+        return epsg;
+    }
+
+    public void setEpsg(Integer epsg) {
+        this.epsg = epsg;
+    }
+
+    public SpatialReference getSpatialReference() {
+        return GdalHelper.createSpatialReference(this.getEpsg());
+    }
 }

--
Gitblit v1.9.3