使用产品:iobject 10i 操作系统:win7 x64
数据类型: 文件型 las 点云数据
问题详细描述:我想调用iobject PointCloudCacheBuilder类,把点云生成为缓存,但尝试了设置参数,一直生成失败,PointCloudCacheBuilder.Build()函数返沪false,但没有提示错误的原因。数据应该没问题,因为用桌面软件可以处理成功,处理后也可以加载到场景中。
问题重现步骤:
我写的代码如下。
PointCloudCacheBuilder myPointCloudCacheBuilder = new PointCloudCacheBuilder(myLasFilePath, myCacheFolderPath, myCacheName);
PointCloudFileInfo myPointCloudFileInfo = new PointCloudFileInfo();
myPointCloudFileInfo.PointDataUnit = DataUnit.Meter;
myPointCloudFileInfo.Position = new Point3D(0, 0, 0);
myPointCloudFileInfo.SrcPrjCoordSys = new PrjCoordSys(32650);
myPointCloudCacheBuilder.PointCloudInfos = myPointCloudFileInfo;
myPointCloudCacheBuilder.ProcessType = ProcessFileType.Normal;
myPointCloudCacheBuilder.FileType = SuperMap.Realspace.CacheFileType.S3MB;
myPointCloudCacheBuilder.PointCloudTileSplitType = ImageTilingMode.Local;
myPointCloudCacheBuilder.TilePyramidSplitType = PyramidSplitType.Octree;
myPointCloudCacheBuilder.Stepped += PointCloudCacheBuilder_Stepped;
bool mySucess = myPointCloudCacheBuilder.Build();