使用产品:SuperMap iObject .NET 9D 操作系统:win10 x64
数据类型: .las
问题详细描述:代码如下,为什么点云生成的缓存总是有错误,还要设置哪些参数?
PointCloudCacheBuilder myPointCloudCacheBuilder = new PointCloudCacheBuilder();
PointCloudFileInfo myPointCloudFileInfo = new PointCloudFileInfo();
myPointCloudFileInfo.CoordSystemTransMethod = CoordSysTransMethod.Extension;
myPointCloudFileInfo.PointCloudFileNamesArray = filenames;
myPointCloudFileInfo.PointDataUnit = DataUnit.Meter;
myPointCloudFileInfo.PointInfoType = PointCloudInfoType.XYZ;
m_Point3DX = Convert.ToDouble(txtPoint3DX.Text.ToString());
m_Point3DY = Convert.ToDouble(txtPoint3DY.Text.ToString());
m_Point3DZ = Convert.ToDouble(txtPoint3DZ.Text.ToString());
myPointCloudFileInfo.Position = new Point3D(m_Point3DX, m_Point3DY, m_Point3DZ);
myPointCloudFileInfo.SrcPrjCoordSys = prjCoordSys;
myPointCloudCacheBuilder.PointCloudInfos = myPointCloudFileInfo;
myPointCloudCacheBuilder.OutputFolder = textBox2.Text;
myPointCloudCacheBuilder.PointCloudListName = "Config";
myPointCloudCacheBuilder.CacheName = "DianYun";
myPointCloudCacheBuilder.ProcessType = ProcessFileType.Add;
myPointCloudCacheBuilder.FileType = SuperMap.Realspace.CacheFileType.OSGB;
myPointCloudCacheBuilder.TilePyramidSplitType = PyramidSplitType.QuadTree;
myPointCloudCacheBuilder.CategoryField = PointCloudCategoryField.Intensity;
bool mySucess = myPointCloudCacheBuilder.Build();