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 |   89 ++++++++++++++++++++++++--------------------
 1 files changed, 48 insertions(+), 41 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 281dc71..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;
@@ -63,16 +72,20 @@
     @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) {
@@ -87,38 +100,12 @@
         this.duration = duration;
     }
 
-    public void setPath(String inPath, String outPath) {
-        this.inPath = inPath;
-        this.outPath = outPath;
+    public Integer getPid() {
+        return pid;
     }
 
-    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 boolean setFlood(Integer floodStart, Integer floodEnd, Double floodHeight, String floodType) {
-        this.isFlood = 1;
-        this.floodStart = floodStart;
-        this.floodEnd = floodEnd;
-        this.floodHeight = floodHeight;
-        this.floodType = floodType;
-
-        return true;
-    }
-
-    public boolean setFloodExtent(Double floodMinx, Double floodMiny, Double floodMaxx, Double floodMaxy) {
-        this.isFlood = 1;
-        this.floodMinx = floodMinx;
-        this.floodMiny = floodMiny;
-        this.floodMaxx = floodMaxx;
-        this.floodMaxy = floodMaxy;
-
-        return true;
+    public void setPid(Integer pid) {
+        this.pid = pid;
     }
 
     public String getName() {
@@ -143,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() {
@@ -264,4 +259,16 @@
     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