From 796b44ea813a1133beae4f3a67f1c0263510c0c7 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期日, 17 十一月 2024 09:45:07 +0800 Subject: [PATCH] 1 --- src/main/java/com/moon/server/service/data/SlopeAnalysisService.java | 18 +----------------- 1 files changed, 1 insertions(+), 17 deletions(-) diff --git a/src/main/java/com/moon/server/service/data/SlopeAnalysisService.java b/src/main/java/com/moon/server/service/data/SlopeAnalysisService.java index 862ebec..9c161de 100644 --- a/src/main/java/com/moon/server/service/data/SlopeAnalysisService.java +++ b/src/main/java/com/moon/server/service/data/SlopeAnalysisService.java @@ -18,12 +18,8 @@ import java.io.IOException; import java.util.*; -/** - * 鏍呮牸鍒嗘瀽鏈嶅姟 - * @author WWW - * @date 2023-11-16 - */ @Service +@SuppressWarnings("ALL") public class SlopeAnalysisService { @Value("${sys.path.slopFile}") private String filePath; @@ -35,9 +31,6 @@ private final static Log log = LogFactory.getLog(SlopeAnalysisService.class); - /** - * 鑾峰彇Excel妯℃澘 - */ private String getXlsTemplate() throws IOException { if (null == xlsTemplate) { xlsTemplate = FileHelper.getClassPathForWar() + File.separator + "config" + File.separator + "slope.xlsx"; @@ -46,9 +39,6 @@ return xlsTemplate; } - /** - * 涓嬭浇鍧″害鍒嗘瀽Excel - */ public void downloadSlopXls(Geometry polygon, HttpServletResponse res) throws Exception { Dataset ds = null; try { @@ -76,9 +66,6 @@ } } - /** - * 鍒嗘瀽澶氳竟褰� - */ public List<PointEntity> analysisPolygon(Geometry geo, Dataset ds) { double[] transform = ds.GetGeoTransform(); int xSize = ds.getRasterXSize(), ySize = ds.getRasterYSize(); @@ -114,9 +101,6 @@ return list; } - /** - * 鍒涘缓Excel - */ public String createXls(List<PointEntity> list, String template) { String target = pathHelper.getTempPath() + File.separator + "slope_" + StringHelper.YMD2_FORMAT.format(new Date()) + ".xlsx"; -- Gitblit v1.9.3