From 138b959cc11dc9a73b0c766030b99ba1180d8650 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 11 十一月 2024 14:32:48 +0800
Subject: [PATCH] 11

---
 src/main/java/com/se/simu/service/ResultService.java |   29 -----------------------------
 1 files changed, 0 insertions(+), 29 deletions(-)

diff --git a/src/main/java/com/se/simu/service/ResultService.java b/src/main/java/com/se/simu/service/ResultService.java
index b5c5b2a..d6a980b 100644
--- a/src/main/java/com/se/simu/service/ResultService.java
+++ b/src/main/java/com/se/simu/service/ResultService.java
@@ -34,12 +34,6 @@
 import java.util.List;
 import java.util.concurrent.CopyOnWriteArrayList;
 
-/**
- * 澶勭悊缁撴灉鏈嶅姟绫�
- *
- * @author WWW
- * @date   2024-09-29
- */
 @Slf4j
 @Service
 @SuppressWarnings("ALL")
@@ -82,9 +76,6 @@
         }
     }
 
-    /**
-     * 鍦板舰
-     */
     private void copeTerrain(ResultDto dto, LayerDto layer) {
         Dataset ds = null;
         try {
@@ -138,9 +129,6 @@
         }
     }
 
-    /**
-     * 閲嶉噰鏍�: https://blog.51cto.com/u_16099346/6691820
-     */
     private static void Resample(Dataset ds, String dest, int width, int height, LayerDto layer) {
         Vector<String> vector = new Vector<>();
         //vector.add("-s_srs");
@@ -224,9 +212,6 @@
         }
     }
 
-    /**
-     * 寤虹瓚
-     */
     private void copeBuilding(ResultDto dto, LayerDto layer) {
         Driver driver = null;
         DataSource dataSource = null;
@@ -256,9 +241,6 @@
         }
     }
 
-    /**
-     * 姘撮潰
-     */
     private void setWaterInfo(ResultDto dto, LayerDto layer) {
         List<String> files = getFiles(dto.getWaterPath(), ".tif");
         layer.getWaters().setFiles(files);
@@ -434,10 +416,6 @@
         }
     }
 
-    /**
-     * 鏄惁鐩镐氦
-     * https://blog.csdn.net/flyingshineangel/article/details/135423025
-     */
     private static BuildingDto intersects(ResultDto dto, double x, double y) {
         Geometry p = new Geometry(ogr.wkbPoint);
         p.AddPoint_2D(x, y);
@@ -566,7 +544,6 @@
 
     private static void createFlowPng(float[] vxBuffer, float[] vyBuffer, String png, int width, int height) {
         BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
-        // 鐢� R閫氶亾琛ㄧず锛屾祦鍚戜负褰掍竴鍖栫殑浜岀淮鍚戦噺锛坸,y锛夛紝G閫氶亾琛ㄧず涓� x *255 , B閫氶亾琛ㄧず涓� y * 255
         for (int x = 0; x < width; x++) {
             for (int y = 0; y < height; y++) {
                 int offset = x + y * width;
@@ -600,9 +577,6 @@
         return val;
     }
 
-    /**
-     * 鍏冩暟鎹�
-     */
     private void copeLayerJson(ResultDto dto, LayerDto layer) throws IOException {
         layer.getWaters().setFiles(null);
         layer.getTerrain().setEpsg(null);
@@ -614,9 +588,6 @@
         writeJson(filePath, json);
     }
 
-    /**
-     * 澶勭悊闄嶆按鏇茬嚎鏂囦欢鏇茬嚎鍥�
-     */
     public void copeRainFallJson(ResultDto dto, LayerDto layer) throws IOException, ParseException {
         String rainGageFilePath = config.getInPath() + File.separator + dto.getServiceName() + File.separator + "RainGage.dat";
         String filePath = dto.getOutPath() + File.separator + "rainfall.json";

--
Gitblit v1.9.3