|
|
|
@ -76,8 +76,6 @@ public class DataImportServiceImpl implements DataImportService {
|
|
|
|
|
radi_chn_mul_horMapper radichnmulhorMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<String> upLoadProjectLedgerBySingleFile(MultipartFile file) throws IOException {
|
|
|
|
|
return null;
|
|
|
|
@ -89,7 +87,6 @@ public class DataImportServiceImpl implements DataImportService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 导入Excel坐标点信息
|
|
|
|
|
*
|
|
|
|
@ -264,7 +261,6 @@ public class DataImportServiceImpl implements DataImportService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String objPath = System.getProperty("user.dir") + File.separator + path;
|
|
|
|
|
// 2、保存文件到指定路径存文件到指定路径
|
|
|
|
|
for (MultipartFile file : railwayStaUAVTifDataFile) {
|
|
|
|
@ -298,17 +294,6 @@ public class DataImportServiceImpl implements DataImportService {
|
|
|
|
|
return retMsg;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //设置时间格式
|
|
|
|
|
// SimpleDateFormat sdf = new SimpleDateFormat( "yyyyMMdd" );
|
|
|
|
|
// //1、处理文件位置
|
|
|
|
@ -363,6 +348,7 @@ public class DataImportServiceImpl implements DataImportService {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 递归删除文件夹及其内部所有文件
|
|
|
|
|
*
|
|
|
|
|
* @param folder 要删除的文件夹
|
|
|
|
|
* @return 是否删除成功
|
|
|
|
|
*/
|
|
|
|
@ -427,12 +413,14 @@ public class DataImportServiceImpl implements DataImportService {
|
|
|
|
|
try {
|
|
|
|
|
TGeoserverinfo tGeoserverinfo = new TGeoserverinfo();
|
|
|
|
|
tGeoserverinfo = tGeoserverinfoMapper.getTifByRegionAndTime(region);
|
|
|
|
|
if (tGeoserverinfo != null) {
|
|
|
|
|
tGeoserverinfo.setUrl(geoServerPubService.getMapBox3857RasterWmsUrl(tGeoserverinfo.getId()));
|
|
|
|
|
}
|
|
|
|
|
return tGeoserverinfo;
|
|
|
|
|
}catch(ParamsException e){
|
|
|
|
|
throw new RuntimeException("数据库获取失败", e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<String> getLayer () {
|
|
|
|
|
try {
|
|
|
|
@ -645,6 +633,7 @@ public class DataImportServiceImpl implements DataImportService {
|
|
|
|
|
//将records数据取出来
|
|
|
|
|
return new PageVo<>(page);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private String getURL (TGeoserverinfo geoBasedatageoserverinfo){
|
|
|
|
|
String url = "";
|
|
|
|
|
String geoServerURL = "";
|
|
|
|
@ -757,5 +746,4 @@ public class DataImportServiceImpl implements DataImportService {
|
|
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|