fix:修改getTifByRegionAndTime拼接url

main
xlp 8 months ago
parent 8032a8db91
commit de9589f00a

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

Loading…
Cancel
Save