随风落叶X 2022-07-25 10:13 采纳率: 0%
浏览 71
已结题

基于Java平台下开发arcgis runtime100.14,如何加载本地的slpk三维场景文件

基于JAVA平台下开发arcgis runtime100.14,如何加载本地的slpk三维场景文件;下面是我的代码。但是没有成功,运行后会界面闪退

try {

      stage.setTitle("Add An Integrated Mesh Layer Sample");
      stage.setWidth(800);
      stage.setHeight(700);

      // create a JavaFX scene with a stack pane and set it to the stage
      StackPane stackPane = new StackPane();
      Scene fxScene = new Scene(stackPane);
      stage.setScene(fxScene);
     stage.show();

       // create a scene
      ArcGISScene scene = new ArcGISScene();

      // create a scene view and set the scene to it
       sceneView = new SceneView();
      sceneView.setArcGISScene(scene);

 
  
      // create an integrated mesh layer of Girona, Spain and add it to the scene's operational layers
      IntegratedMeshLayer integratedMeshLayer = new IntegratedMeshLayer("file:D:\\1.slpk");
      scene.getOperationalLayers().add(integratedMeshLayer);

     // set a camera position on the scene view
      sceneView.setViewpointCamera(new Camera(lat,lon , 200.0, 350, 65.0, 0));

     // add the scene view to the stack pane
      stackPane.getChildren().add(sceneView);
   } catch (Exception e) {
         // on any error, display the stack trace.
          e.printStackTrace();
    }
  • 写回答

1条回答 默认 最新

  • 随风落叶X 2022-07-26 15:25
    关注

    经过研究,我自己回答自己吧,这个slpk文件从osgb转换成slpk是不能被arcgisruntime所识别的,要做到以下几点:
    1、首先由大疆智图,生产出初级的i3s级别的slpk,坐标系是GCS_WGS84;arcgisruntime三维场景目前只支持这个坐标系;
    2、利用arcgis Pro2.9,目前是2.8;在“地理处理“——搜索找到”升级场景包“,按提示输入初级的i3s级别的slpk文件路径,设置好输出路径,点击下方运行按钮,
    3、上述完成后,按照我帖子中的代码,arcgis runtime就可以加载了。

    评论 编辑记录

报告相同问题?

问题事件

  • 系统已结题 8月2日
  • 赞助了问题酬金10元 7月25日
  • 创建了问题 7月25日

悬赏问题

  • ¥15 如何绘制动力学系统的相图
  • ¥15 对接wps接口实现获取元数据
  • ¥20 给自己本科IT专业毕业的妹m找个实习工作
  • ¥15 用友U8:向一个无法连接的网络尝试了一个套接字操作,如何解决?
  • ¥30 我的代码按理说完成了模型的搭建、训练、验证测试等工作(标签-网络|关键词-变化检测)
  • ¥50 mac mini外接显示器 画质字体模糊
  • ¥15 TLS1.2协议通信解密
  • ¥40 图书信息管理系统程序编写
  • ¥20 Qcustomplot缩小曲线形状问题
  • ¥15 企业资源规划ERP沙盘模拟