| | |
| | | @GetMapping("/test") |
| | | public R<Object> test() { |
| | | try { |
| | | String name = "20240913"; |
| | | // 469538.6536261877,4416744.922022615,469853.14714664617,4417049.378602433 |
| | | //String bbox = "116.64388473935195,39.884315914604464,116.64754729082588,39.887069143903496"; |
| | | DataPo data = new DataPo(name, name, name, 116.64388473935195, 39.884315914604464, 116.64754729082588, 39.887069143903496, 50.0, 25); |
| | | DataPo data = new DataPo("20240913", "20240913", "20240913", 116.64388473935195, 39.884315914604464, 116.64754729082588, 39.887069143903496, 50.0, 25); |
| | | Object rs = gedbService.test(data); |
| | | |
| | | return success(rs); |
| | |
| | | RestTemplate restTemplate; |
| | | |
| | | public boolean test(DataPo data) throws Exception { |
| | | /*String token = getToken(); |
| | | GeDb db = getSeDb(token); |
| | | db.setBbox(bbox); |
| | | |
| | | List<GeLayer> layers = getLayers(token, db); |
| | | queryData(token, db, layers); |
| | | |
| | | String basePath = inPath + File.separator + taskName; |
| | | createPath(basePath); |
| | | createShps(basePath, layers); |
| | | |
| | | GeDb fileDb = getFileDb(token); |
| | | String fileId = getFileId(token, fileDb.getDbid()); |
| | | List<GeFile> files = getFileNames(token, fileDb.getDbid(), fileId); |
| | | |
| | | String filePath = inPath + File.separator + fileDb.getDbid(); |
| | | downloadFiles(token, filePath, files, fileDb.getDbid(), fileId); |
| | | clipDemFile(filePath, files, basePath, bbox, 4548);*/ |
| | | createPath(inPath + File.separator + data.getInPath()); |
| | | |
| | | String token = getToken(); |
| | | GeDb db = connectGedb(token, data); |