From 84d5ac6676d471073cc1054536f9ca12801ca86d Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 17 四月 2024 17:32:22 +0800
Subject: [PATCH] 集成CAD预览功能

---
 src/main/java/com/lf/server/entity/all/StaticData.java |   91 ++++++++++++++++++---------------------------
 1 files changed, 37 insertions(+), 54 deletions(-)

diff --git a/src/main/java/com/lf/server/entity/all/StaticData.java b/src/main/java/com/lf/server/entity/all/StaticData.java
index 6e8bb7d..e7db131 100644
--- a/src/main/java/com/lf/server/entity/all/StaticData.java
+++ b/src/main/java/com/lf/server/entity/all/StaticData.java
@@ -16,21 +16,27 @@
      */
     public static String[] EXCLUDE_PATH = new String[]{"/sign/", "/perms/", "/fmeit/", "/crds/", "/floatserver/", "/wmts/select", "/onemap/", "/swagger", "/error"};
 
-    public final static int TWO = 2;
+    public final static int I1 = 1;
+
+    public final static int I2 = 2;
 
     public final static int FOUR = 4;
 
+    public final static int I5 = 5;
+
     public final static int NINE = 9;
 
-    public final static int TEN = 10;
+    public final static int I10 = 10;
 
     public final static int SIXTEEN = 16;
 
     public final static int TWO_HUNDRED = 200;
 
-    public final static int ONE_HUNDRED_THOUSAND = 100000;
+    public final static int I100000 = 100000;
 
-    public static final double D75 = 75.0;
+    public final static int I1000000 = 1000000;
+
+    public static final double D90 = 90.0;
 
     public static final double D100 = 100.0;
 
@@ -56,6 +62,8 @@
 
     public final static int I100 = 100;
 
+    public final static int I120 = 120;
+
     public static final int I180 = 180;
 
     public static final int I180_NEG = -180;
@@ -68,39 +76,25 @@
 
     public static final int I4490 = 4490;
 
-    /**
-     * 瀛楃1
-     */
     public final static String S1 = "1";
 
-    /**
-     * 绛夊彿
-     */
     public final static String EQ = "=";
 
-    /**
-     * 瀛楃鐐�
-     */
     public final static String POINT = ".";
 
-    /**
-     * 閫楀彿
-     */
     public final static String COMMA = ",";
 
-    /**
-     * 鍗曞紩鍙�
-     */
+    public final static String TILDE = "~";
+
     public final static String SINGLE_QUOTES = "'";
 
     public final static String BBOREHOLE = "bborehole";
 
-    /**
-     * 姝f枩鏉�
-     */
     public final static String SLASH = "/";
 
     public final static String IN = "in";
+
+    public final static String DWG = "dwg";
 
     public final static String ZIP = ".zip";
 
@@ -110,7 +104,11 @@
 
     public final static String MDB = ".mdb";
 
+    public final static String KML = ".kml";
+
     public final static String SHP = ".shp";
+
+    public final static String NGDB = "gdb";
 
     public final static String GDB = ".gdb";
 
@@ -134,53 +132,26 @@
 
     public final static String SYS_META = "sysmeta";
 
-    /**
-     * 鐗堟湰鍙�
-     */
     public final static String VERSION = "1.0.0";
 
-    /**
-     * 浠ょ墝閿�
-     */
     public final static String TOKEN_KEY = "token";
 
-    /**
-     * Cookie涓护鐗岄敭
-     */
     public final static String TOKEN_COOKIE_KEY = "token";
 
-    /**
-     * 鏂囨湰缂栫爜鏂瑰紡
-     */
     public final static String TEXT_ENCODER = "UTF-8";
 
-    /**
-     * 鎬昏川妫�
-     */
     public final static String CHECK_MAIN = "checkMain";
 
-    /**
-     * Object瀵硅薄
-     */
     public final static String OBJECT = "java.lang.Object";
 
-    /**
-     * Cookie涓璬ruid閿�
-     */
     public final static String DRUID_COOKIE_KEY = "JSESSIONID";
 
     public final static String YES = "YES";
 
     public final static String NO = "NO";
 
-    /**
-     * 绾胯矾
-     */
     public final static String ROUTE = "绾胯矾";
 
-    /**
-     * 绌胯法瓒�
-     */
     public final static String CROSSING = "绌胯法瓒�";
 
     public final static String LINESTRING = "LINESTRING";
@@ -195,12 +166,19 @@
 
     public final static String COMPOUNDCURVE = "COMPOUNDCURVE";
 
+    public final static String CGCS2000 = "CGCS2000";
+
     public static final String NO_FILE = JSON.toJSONString(new ResponseMsg<String>(HttpStatus.NOT_FOUND, "鏂囦欢鎵句笉鍒�"));
 
     /**
      * 16杩涘埗
      */
     public static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
+
+    /**
+     * 鏍呮牸鏁版嵁鎵╁睍鍚�
+     */
+    public final static List<String> RASTER_EXT = new ArrayList<>(Arrays.asList(".img", ".tif", ".tiff", ".jpg", ".jp2"));
 
     /**
      * 瀵嗙爜姝e垯琛ㄨ揪寮�
@@ -215,7 +193,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鏂囦欢鎵╁睍鍚�
@@ -225,12 +208,12 @@
     /**
      * TIF鏂囦欢鎵╁睍鍚�
      */
-    public final static List<String> TIF_EXT = new ArrayList<>(Arrays.asList(".prj", ".tfw", ".tif.ovr", ".tif.aux.xml", ".tif.enp", ".tif.xml"));
+    public final static List<String> TIF_EXT = new ArrayList<>(Arrays.asList(".prj", ".tfw", ".aux", ".tif.ovr", ".tif.aux.xml", ".tif.xml"));
 
     /**
      * TIFF鏂囦欢鎵╁睍鍚�
      */
-    public final static List<String> TIFF_EXT = new ArrayList<>(Arrays.asList(".prj", ".tfw", ".tiff.ovr", ".tiff.aux.xml", ".tiff.enp", ".tiff.xml"));
+    public final static List<String> TIFF_EXT = new ArrayList<>(Arrays.asList(".prj", ".tfw", ".aux", ".tiff.ovr", ".tiff.aux.xml", ".tiff.xml"));
 
     /**
      * SHP鏂囦欢鎵╁睍鍚�
@@ -240,12 +223,12 @@
     /**
      * Mapper鎺掗櫎鎵╁睍鍚�
      */
-    public final static List<String> MAPPER_EXCLUDE_EXT = new ArrayList<>(Arrays.asList(".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", ".ecw.xml", "ecw.aux.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", ".lz", ".kml"));
 
     /**
      * 鎻掑叆鎺掗櫎瀛楁

--
Gitblit v1.9.3