arcgis runtime .net 100.3加载本地slpk无法显示

1,从github下载最新arcgis runtime .net 100.3代码示例
2, 修改SceneLayerUrl示例代码如下:
public SceneLayerUrl()
{
InitializeComponent();

// Execute initialization
//Initialize();
//var camera = new Camera(26.3359413066498, 117.65144205681, 500, 0, 0, 71.17);
var splkAbsolutePath = @"E:\SourceCode\3D\JointCore\Released\ModuleJointDesktop\Data\I3S\SanMing\i3s.slpk";
LoadSceneLayerFromSLPK(MySceneView, splkAbsolutePath);
}
public void LoadSceneLayerFromSLPK(SceneView sceneView, string slpkPath)
{
if (!File.Exists(slpkPath))
throw new Exception("if(!File.Exists(slpkPath))");

if (null == sceneView.Scene)
CreateScene(sceneView);
Uri treespk = new System.Uri(slpkPath);
var sceneLayer = new ArcGISSceneLayer();
// add the scene layer to the scene
sceneLayer.Source = treespk;
sceneLayer.Name = "倾斜三维";
sceneLayer.Loaded += SceneLayer_Loaded;
//await sceneLayer.LoadAsync();
sceneView.Scene.OperationalLayers.Add(sceneLayer);//实景三维
}
public void CreateScene(SceneView sceneView)
{
m_sceneView = sceneView;
// Create new Scene
Scene myScene = new Scene();
// Set Scene's base map property
myScene.Basemap = Basemap.CreateImagery();
myScene.Basemap.BaseLayers[0].Name = "影像";
sceneView.Scene = myScene;
}
private void SceneLayer_Loaded(object sender, EventArgs e)
{
var arcGISSceneLayer = sender as ArcGISSceneLayer;
if (null == arcGISSceneLayer)
return;
var fullExtent = arcGISSceneLayer.FullExtent;
var center = fullExtent.GetCenter();
var camera = new Camera(center.Y, center.X, 500, 60, 0, 71.17);
m_sceneView.SetViewpointCameraAsync(camera);
}
3,调试代码发现SceneLayer_Loaded正常运行,arcGISSceneLayer.LoadStatus为Loaded,arcGISSceneLayer.LoadError为null
4,结果却是在界面上看不到包含加载的本地slpk的ArcGISSceneLayer。而相同代码在100.2.1是正常加载并显示的。其中slpk数据的wkid=4326
5,用最新arcgis earth加载相同slpk却能够正常显示在地球上,什么原因?
已邀请:

张佳期

赞同来自:

您好,关于使用android加载slpk在100.2.1中能够显示,在100.3中有时不能显示的问题,我将我这边和esri美国工程师沟通的情况和您反馈下,具体如下:

(1)确保slpk是由ArcGIS Pro生成的,如果是经过第三方软件生成的,那么在用android加载之前,首先使用ArcGIS Pro的“Validate Scene Layer Package" 工具进行验证,验证slpk是否报错,比如:空间参考丢失。 
(2)在100.2.1中能够加载这个缺失空间参考的slpk,说明100.2.1对slpk的加载性能较好,而100.3对slpk丢失空间参考的情况要求严格,如果由不三方生成的slpk缺失空间参考,那么在android100.3.0中就不能加载。 
(3)此外,经过测试发现最近发布的android100.4对slpk的加载性能得到进一步提升。

爱尔兰咖啡~维庚

赞同来自:

用你说的办法验证结果如下,我是用smart3d直接生产的slpk,请问如何处理。用你们的pro不会用。ValidateSceneLayerPackage
*******************************************************************************
文件:xiadang-i3s.slpk
位置:D:\寿宁\i3s\xiadang-i3s
图层类型:IntegratedMesh
日期:Tue Oct 23 17:39:22 2018

*******************************************************************************
Metadata.json 验证:
警告:缺失值:
folderPattern
ArchiveCompressionType
ResourceCompressionType
I3SVersion
-------------------------------------------------------------------------------
3dSceneLayer.json 验证:
警告:缺失值:
attributeEncoding
警告:缺失值:
heightModelInfo
-------------------------------------------------------------------------------
统计数据验证:
未检测到问题。
-------------------------------------------------------------------------------
节点验证:
警告:缺失值:
Could not get featureData as array for node 0.
Could not get geometryData as array for node 0.
Could not get featureData as array for node 0-0.
Could not get geometryData as array for node 0-0.
Could not get featureData as array for node 0-1.
Could not get geometryData as array for node 0-1.
Could not get featureData as array for node 0-2.
Could not get geometryData as array for node 0-2.
Could not get featureData as array for node 0-3.
Could not get geometryData as array for node 0-3.
Could not get featureData as array for node 1.
Could not get geometryData as array for node 1.
Could not get featureData as array for node 1-0.
Could not get geometryData as array for node 1-0.
Could not get featureData as array for node 1-1.
Could not get geometryData as array for node 1-1.
Could not get featureData as array for node 1-2.
Could not get geometryData as array for node 1-2.
Could not get featureData as array for node 1-3.
Could not get geometryData as array for node 1-3.
Could not get featureData as array for node 2.
Could not get geometryData as array for node 2.
Could not get featureData as array for node 2-0.
Could not get geometryData as array for node 2-0.
Could not get featureData as array for node 2-1.
Could not get geometryData as array for node 2-1.
Could not get featureData as array for node 2-2.
Could not get geometryData as array for node 2-2.
Could not get featureData as array for node 2-3.
Could not get geometryData as array for node 2-3.
Could not get featureData as array for node 3.
Could not get geometryData as array for node 3.
Could not get featureData as array for node 3-0.
Could not get geometryData as array for node 3-0.
Could not get featureData as array for node 3-0-2-0-0-0-0-0-2-1.
Could not get geometryData as array for node 3-0-2-0-0-0-0-0-2-1.
Could not get featureData as array for node 3-0-2-0-0-0-0-0-2-1-0.
Could not get geometryData as array for node 3-0-2-0-0-0-0-0-2-1-0.
Could not get featureData as array for node 3-1.
Could not get geometryData as array for node 3-1.
Could not get featureData as array for node 3-2.
Could not get geometryData as array for node 3-2.
Could not get featureData as array for node 3-3.
Could not get geometryData as array for node 3-3.
Could not get featureData as array for node 4.
Could not get geometryData as array for node 4.
Could not get featureData as array for node 5.
Could not get geometryData as array for node 5.
Could not get featureData as array for node 5-0.
Could not get geometryData as array for node 5-0.
Could not get featureData as array for node 5-1.
Could not get geometryData as array for node 5-1.
Could not get featureData as array for node 5-2.
Could not get geometryData as array for node 5-2.
Could not get featureData as array for node 5-3.
Could not get geometryData as array for node 5-3.
Could not get featureData as array for node 6.
Could not get geometryData as array for node 6.
Could not get featureData as array for node 6-0.
Could not get geometryData as array for node 6-0.
Could not get featureData as array for node 6-1.
Could not get geometryData as array for node 6-1.
Could not get featureData as array for node 6-2.
Could not get geometryData as array for node 6-2.
Could not get featureData as array for node 6-3.
Could not get geometryData as array for node 6-3.
警告:无效值:
The mbs of node 3-0-2-0-0-0-0-0-2-1 extends outside the mbs of its parent, node 3-0-2-0-0-0-0-0-2, by 487% of the radius of the mbs of its parent (74.09 meters).
*******************************************************************************
验证报表结尾

要回复问题请先登录注册