|
@@ -360,23 +360,23 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
- private void cachePanorama(String dataSource, String num){
|
|
|
|
- String cachedImagesPath = String.format(ConstantFilePath.SCENE_CACHE_IMAGES, num);
|
|
|
|
- //将全景图缓存到缓存目录
|
|
|
|
- List<String> imagesList = FileUtil.listFileNames(dataSource + "/caches/images");
|
|
|
|
- //先清除旧的全景图
|
|
|
|
- cn.hutool.core.io.FileUtil.del(cachedImagesPath);
|
|
|
|
- String visionPath = dataSource + "/results/vision.txt";
|
|
|
|
- List<String> panoramaImageList = SceneUtil.getPanoramaImageList(visionPath);
|
|
|
|
- imagesList.stream().forEach(fileName -> {
|
|
|
|
- if (panoramaImageList.contains(fileName)) {
|
|
|
|
- String srcPath = dataSource + "/caches/images/" + fileName;
|
|
|
|
- String targetPath = cachedImagesPath + fileName;
|
|
|
|
- log.info("源文件:{}, 目标文件:{}", srcPath, targetPath);
|
|
|
|
- cn.hutool.core.io.FileUtil.copy(srcPath, targetPath, true);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+// private void cachePanorama(String dataSource, String num){
|
|
|
|
+// String cachedImagesPath = String.format(ConstantFilePath.SCENE_CACHE_IMAGES, num);
|
|
|
|
+// //将全景图缓存到缓存目录
|
|
|
|
+// List<String> imagesList = FileUtil.listFileNames(dataSource + "/caches/images");
|
|
|
|
+// //先清除旧的全景图
|
|
|
|
+// cn.hutool.core.io.FileUtil.del(cachedImagesPath);
|
|
|
|
+// String visionPath = dataSource + "/results/vision.txt";
|
|
|
|
+// List<String> panoramaImageList = SceneUtil.getPanoramaImageList(visionPath);
|
|
|
|
+// imagesList.stream().forEach(fileName -> {
|
|
|
|
+// if (panoramaImageList.contains(fileName)) {
|
|
|
|
+// String srcPath = dataSource + "/caches/images/" + fileName;
|
|
|
|
+// String targetPath = cachedImagesPath + fileName;
|
|
|
|
+// log.info("源文件:{}, 目标文件:{}", srcPath, targetPath);
|
|
|
|
+// cn.hutool.core.io.FileUtil.copy(srcPath, targetPath, true);
|
|
|
|
+// }
|
|
|
|
+// });
|
|
|
|
+// }
|
|
|
|
|
|
private Map<String, String> getUploadFiles(ScenePlus scenePlus,String path,Integer cameraType,JSONObject fdageData) throws Exception {
|
|
private Map<String, String> getUploadFiles(ScenePlus scenePlus,String path,Integer cameraType,JSONObject fdageData) throws Exception {
|
|
if (ObjectUtils.isEmpty(scenePlus)) {
|
|
if (ObjectUtils.isEmpty(scenePlus)) {
|