| | |
| | | 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'}; |
| | |
| | | srid = geomMapper.selectSrid(tab); |
| | | } |
| | | |
| | | SpatialReference sr = new SpatialReference(); |
| | | sr.ImportFromEPSG(null == srid ? StaticData.I104903 : srid); |
| | | // SpatialReference sr = new SpatialReference(); sr.ImportFromEPSG(null == srid || 0 == srid ? StaticData.I104903 : srid) |
| | | SpatialReference sr; |
| | | if (null == srid || 0 == srid) { |
| | | sr = new SpatialReference(StaticData.MOON_2000_WKT); |
| | | } else { |
| | | sr = new SpatialReference(); |
| | | sr.ImportFromEPSG(srid); |
| | | } |
| | | |
| | | return dataSource.CreateLayer(tab.replace(".", "_"), sr, getGeomType(geomType), null); |
| | | } |