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 | 26 ++++++++++++++++++++------ 1 files changed, 20 insertions(+), 6 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 47e9086..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,19 +16,25 @@ */ 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 final static int I1000000 = 1000000; public static final double D90 = 90.0; @@ -55,6 +61,8 @@ public static final int I90_NEG = -90; public final static int I100 = 100; + + public final static int I120 = 120; public static final int I180 = 180; @@ -86,6 +94,8 @@ public final static String IN = "in"; + public final static String DWG = "dwg"; + public final static String ZIP = ".zip"; public final static String XLS = ".xls"; @@ -93,6 +103,8 @@ public final static String XLSX = ".xlsx"; public final static String MDB = ".mdb"; + + public final static String KML = ".kml"; public final static String SHP = ".shp"; @@ -154,6 +166,8 @@ 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, "鏂囦欢鎵句笉鍒�")); /** @@ -164,7 +178,7 @@ /** * 鏍呮牸鏁版嵁鎵╁睍鍚� */ - public final static List<String> RASTER_EXT = new ArrayList<>(Arrays.asList(".img", ".tif", ".tiff", "jpg", "jp2")); + public final static List<String> RASTER_EXT = new ArrayList<>(Arrays.asList(".img", ".tif", ".tiff", ".jpg", ".jp2")); /** * 瀵嗙爜姝e垯琛ㄨ揪寮� @@ -209,12 +223,12 @@ /** * Mapper鎺掗櫎鎵╁睍鍚� */ - 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> 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", ".jp2", ".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