From 4e7ae7e903a07389607cf47ad8f2bbd5e8ccd8d6 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 30 八月 2023 10:18:50 +0800 Subject: [PATCH] 元数据查询接口添加传感器类型、元数据类型、开始日期、结束日期参数 --- src/main/java/com/moon/server/entity/all/StaticData.java | 127 +++++++++++++++++++++++------------------ 1 files changed, 71 insertions(+), 56 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 3f78c89..fa3b9df 100644 --- a/src/main/java/com/moon/server/entity/all/StaticData.java +++ b/src/main/java/com/moon/server/entity/all/StaticData.java @@ -16,11 +16,17 @@ */ public static String[] EXCLUDE_PATH = new String[]{"/sign/", "/perms/", "/floatserver/", "/proxy/", "/swagger", "/error"}; - public final static int TWO = 2; + public final static int I0 = 0; - public final static int THREE = 3; + public final static int I1 = 1; - public final static int FOUR = 4; + public final static int I2 = 2; + + public final static int I3 = 3; + + public final static int I4 = 4; + + public final static int I5 = 5; public final static int NINE = 9; @@ -34,6 +40,10 @@ public final static int ONE_HUNDRED_THOUSAND = 100000; + public static final double D90 = 90.0; + + public static final double D100 = 100.0; + public static final double D1024 = 1024.0; public static final double D1050 = 1050.0; @@ -46,11 +56,15 @@ public static final int I31 = 31; + public static final int I50 = 50; + public static final int I60 = 60; public static final int I90 = 90; public static final int I90_NEG = -90; + + public final static int I100 = 100; public static final int I120 = 120; @@ -62,46 +76,32 @@ public static final int I2050 = 2050; + public static final int I4326 = 4326; + public static final int I4490 = 4490; public static final int I104903 = 104903; - /** - * 瀛楃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 AK = "?ak="; + public final static String TILDE = "~"; - public final static String REST_LAYER = "/rest/layer/"; - - /** - * 鍗曞紩鍙� - */ public final static String SINGLE_QUOTES = "'"; public final static String BBOREHOLE = "bborehole"; + public final static String AK = "?ak="; + + public final static String REST_LAYER = "/v6/rest/"; + public final static String TEXT_XML = "text/xml"; - /** - * 姝f枩鏉� - */ public final static String SLASH = "/"; public final static String IN = "in"; @@ -116,9 +116,13 @@ public final static String SHP = ".shp"; + public final static String NGDB = "gdb"; + public final static String GDB = ".gdb"; public final static String JPG = ".jpg"; + + public final static String JP2 = ".jp2"; public final static String IMG = ".img"; @@ -130,57 +134,34 @@ public final static String TIFF = ".tiff"; + public final static String LAS = ".las"; + + public final static String OSGB = ".osgb"; + public static String ADMIN = "admin"; 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"; @@ -191,7 +172,31 @@ public final static String MULTIPOLYGON = "MULTIPOLYGON"; + public final static String MULTICURVE = "MULTICURVE"; + + public final static String COMPOUNDCURVE = "COMPOUNDCURVE"; + 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\"]]"; + + public final static String CGCS2000 = "CGCS2000"; + + public final static String MOON200 = "GCS_Moon_2000"; + + public final static List<String> EPSGS = new ArrayList<>(Arrays.asList("EPSG:4326", "EPSG:4490", "EPSG:104903")); /** * 16杩涘埗 @@ -204,6 +209,11 @@ public final static String PWD_REG = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$"; /** + * 鏍呮牸鏁版嵁鎵╁睍鍚� + */ + public final static List<String> RASTER_EXT = new ArrayList<>(Arrays.asList(".img", ".tif", ".tiff", ".jpg", ".jp2")); + + /** * MPT鏂囦欢鎵╁睍鍚� */ public final static List<String> MPT_EXT = new ArrayList<>(Arrays.asList(".midx", ".strmi", ".ei.midx", ".ei.mpt", ".ei.strmi")); @@ -211,7 +221,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鏂囦欢鎵╁睍鍚� @@ -221,12 +236,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鏂囦欢鎵╁睍鍚� @@ -236,12 +251,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", ".csv")); /** * 鎻掑叆鎺掗櫎瀛楁 -- Gitblit v1.9.3