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/dto/ResultDto.java |   70 ++++++++++++++++++++++++++++++-----
 1 files changed, 60 insertions(+), 10 deletions(-)

diff --git a/src/main/java/com/se/simu/domain/dto/ResultDto.java b/src/main/java/com/se/simu/domain/dto/ResultDto.java
index af4e9dd..4ae214b 100644
--- a/src/main/java/com/se/simu/domain/dto/ResultDto.java
+++ b/src/main/java/com/se/simu/domain/dto/ResultDto.java
@@ -1,18 +1,13 @@
 package com.se.simu.domain.dto;
 
 import cn.hutool.core.io.FileUtil;
+import com.se.simu.helper.GdalHelper;
+import org.gdal.osr.SpatialReference;
 
 import java.io.File;
-import java.util.Dictionary;
-import java.util.HashMap;
-import java.util.Map;
+import java.util.*;
 
-/**
- * 缁撴灉瀹炰綋绫�
- *
- * @author WWW
- * @date 2024-09-30
- */
+@SuppressWarnings("ALL")
 public class ResultDto {
     private String serviceName;
 
@@ -24,25 +19,40 @@
 
     private String flowPath;
 
+    private String h5Path;
+
+    private String inPath;
+
     private String outPath;
 
     private String temp;
 
+    private int epsg;
+
+    private SpatialReference spatialReference;
+
     private Map<String, float[]> buildings;
+
+    private List<BuildingDto> buildingList;
 
     public ResultDto() {
         this.buildings = new HashMap<>();
+        this.buildingList = new ArrayList<>();
     }
 
-    public ResultDto(String serviceName, String terrainFile, String buildingFile, String waterPath, String flowPath, String outPath, String temp) {
+    public ResultDto(String serviceName, String terrainFile, String buildingFile, String waterPath, String flowPath, String inPath, String outPath, int epsg) {
         this();
         this.serviceName = serviceName;
         this.terrainFile = terrainFile;
         this.buildingFile = buildingFile;
         this.waterPath = waterPath;
         this.flowPath = flowPath;
+        this.inPath = inPath + File.separator + serviceName;
+        this.h5Path = this.inPath + File.separator + ".save" + File.separator + serviceName + ".h5";
         this.outPath = outPath + File.separator + serviceName;
         this.temp = outPath + File.separator + serviceName + File.separator + "temp";
+        this.epsg = epsg;
+        this.spatialReference = GdalHelper.createSpatialReference(epsg);
 
         File dir = new File(this.outPath);
         if (dir.exists() && dir.isDirectory()) {
@@ -97,6 +107,14 @@
         this.flowPath = flowPath;
     }
 
+    public String getInPath() {
+        return inPath;
+    }
+
+    public void setInPath(String inPath) {
+        this.inPath = inPath;
+    }
+
     public String getOutPath() {
         return outPath;
     }
@@ -120,4 +138,36 @@
     public void setBuildings(Map<String, float[]> buildings) {
         this.buildings = buildings;
     }
+
+    public List<BuildingDto> getBuildingList() {
+        return buildingList;
+    }
+
+    public void setBuildingList(List<BuildingDto> buildingList) {
+        this.buildingList = buildingList;
+    }
+
+    public int getEpsg() {
+        return epsg;
+    }
+
+    public void setEpsg(int epsg) {
+        this.epsg = epsg;
+    }
+
+    public SpatialReference getSpatialReference() {
+        return spatialReference;
+    }
+
+    public void setSpatialReference(SpatialReference spatialReference) {
+        this.spatialReference = spatialReference;
+    }
+
+    public String getH5Path() {
+        return h5Path;
+    }
+
+    public void setH5Path(String h5Path) {
+        this.h5Path = h5Path;
+    }
 }

--
Gitblit v1.9.3