Browse Source

3dtiles上传模型,调用脚本方式更换

dsx 2 years ago
parent
commit
fbd1cd0788

+ 2 - 1
src/main/java/com/fdkankan/scene/service/impl/SceneProServiceImpl.java

@@ -818,7 +818,8 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
         //调用算法
         String command = "bash /home/ubuntu/bin/Obj2Tiles.sh " + path;
         log.info("上传3dtiles模型开始, num:{}, targetPath:{}", num, path);
-        RuntimeUtil.exec(command);
+//        RuntimeUtil.exec(command);
+        CreateObjUtil.callshell(command);
         log.info("上传3dtiles模型结束, num:{}, targetPath:{}", num, path);
 
         //检测计算结果