From 9f1a4216b05abfb54630440f35f7d2e466d41ac9 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期四, 24 八月 2023 15:55:37 +0800
Subject: [PATCH] 添加jp2类型的支持

---
 src/main/java/com/moon/server/entity/all/StaticData.java |   27 ++++++++++++++++++++++++---
 1 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/moon/server/entity/all/StaticData.java b/src/main/java/com/moon/server/entity/all/StaticData.java
index f71beb6..415af7f 100644
--- a/src/main/java/com/moon/server/entity/all/StaticData.java
+++ b/src/main/java/com/moon/server/entity/all/StaticData.java
@@ -137,6 +137,8 @@
 
     public final static String JPG = ".jpg";
 
+    public final static String JP2 = ".jp2";
+
     public final static String IMG = ".img";
 
     public final static String MPT = ".mpt";
@@ -219,6 +221,20 @@
     public static final String NO_FILE = JSON.toJSONString(new ResponseMsg<String>(HttpStatus.NOT_FOUND, "鏂囦欢鎵句笉鍒�"));
 
     /**
+     * 鏈堢悆2000鍧愭爣绯荤殑WKT
+     */
+    public static final String MOON_2000_WKT = "GEOGCS[\"GCS_Moon_2000\",\r\n" +
+            "    DATUM[\"D_Moon_2000\",\r\n" +
+            "        SPHEROID[\"Moon_2000_IAU_IAG\",1737400,0,\r\n" +
+            "            AUTHORITY[\"ESRI\",\"107903\"]],\r\n" +
+            "        AUTHORITY[\"ESRI\",\"106903\"]],\r\n" +
+            "    PRIMEM[\"Reference_Meridian\",0,\r\n" +
+            "        AUTHORITY[\"ESRI\",\"108900\"]],\r\n" +
+            "    UNIT[\"degree\",0.0174532925199433,\r\n" +
+            "        AUTHORITY[\"EPSG\",\"9122\"]],\r\n" +
+            "    AUTHORITY[\"ESRI\",\"104903\"]]";
+
+    /**
      * 16杩涘埗
      */
     public static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
@@ -236,7 +252,12 @@
     /**
      * JPG鏂囦欢鎵╁睍鍚�
      */
-    public final static List<String> JPG_EXT = new ArrayList<>(Arrays.asList(".jgw", ".jpg.aux.xml", ".jpg.xml", ".prj"));
+    public final static List<String> JPG_EXT = new ArrayList<>(Arrays.asList(".jpg.aux.xml", ".jpg.ovr", ".jpg.xml", ".jgw", ".prj"));
+
+    /**
+     * JP2鏂囦欢鎵╁睍鍚�
+     */
+    public final static List<String> JP2_EXT = new ArrayList<>(Arrays.asList(".jp2.aux.xml", ".jp2.ovr", ".jp2.xml", ".jgw", ".prj", ".jp2.html", ".jp2.txt"));
 
     /**
      * IMG鏂囦欢鎵╁睍鍚�
@@ -261,12 +282,12 @@
     /**
      * Mapper鎺掗櫎鎵╁睍鍚�
      */
-    public final static List<String> MAPPER_EXCLUDE_EXT = new ArrayList<>(Arrays.asList(".jpg.aux.xml", ".jpg.xml", ".img.aux.xml", ".img.xml", ".tif.aux.xml", ".tif.xml", ".tiff.aux.xml", ".tiff.xml", ".shp.xml"));
+    public final static List<String> MAPPER_EXCLUDE_EXT = new ArrayList<>(Arrays.asList(".jpg.aux.xml", ".jpg.xml", ".jp2.aux.xml", ".jp2.xml", ".jp2.html", ".jp2.txt", ".img.aux.xml", ".img.xml", ".tif.aux.xml", ".tif.xml", ".tiff.aux.xml", ".tiff.xml", ".shp.xml"));
 
     /**
      * 鎵�鏈夋枃浠舵墿灞曞悕
      */
-    public final static List<String> ALL_EXTENSION = new ArrayList<>(Arrays.asList(".txt", ".xml", ".pdf", ".xls", ".xlsx", ".doc", ".docx", ".ppt", ".pptx", ".shp", ".gdb", ".mdb", ".dwg", ".las", ".laz", ".cpt", ".mpt", ".ei.mpt", ".fly", ".efb", ".g3d", ".fbx", ".obj", ".3dm", ".3dml", ".osgb", ".rvt", ".ifc", ".jpg", ".png", ".img", ".tif", ".tiff", ".dem", ".bmp", ".gif", ".rmvb", ".rm", ".mp3", ".mp4", ".avi", ".wma", ".wmv", ".7z", ".rar", ".zip"));
+    public final static List<String> ALL_EXTENSION = new ArrayList<>(Arrays.asList(".txt", ".xml", ".pdf", ".xls", ".xlsx", ".doc", ".docx", ".ppt", ".pptx", ".shp", ".gdb", ".mdb", ".dwg", ".las", ".laz", ".cpt", ".mpt", ".ei.mpt", ".fly", ".efb", ".g3d", ".fbx", ".obj", ".3dm", ".3dml", ".osgb", ".rvt", ".ifc", ".jpg", ".jp2", ".png", ".img", ".tif", ".tiff", ".dem", ".bmp", ".gif", ".rmvb", ".rm", ".mp3", ".mp4", ".avi", ".wma", ".wmv", ".7z", ".rar", ".zip"));
 
     /**
      * 鎻掑叆鎺掗櫎瀛楁

--
Gitblit v1.9.3