使用产品:iObject.NET 10i
我的代码:
PointCloudCacheBuilder cacheBuilder = new PointCloudCacheBuilder();
cacheBuilder.CacheName = "DY";
cacheBuilder.CategoryField = PointCloudCategoryField.Intensity;
cacheBuilder.FileType = CacheFileType.S3M;
cacheBuilder.OutputFolder = @"F:\asd";
PointCloudFileInfo pointCloudFileInfo = new PointCloudFileInfo();
PrjCoordSys prjCoordSys = new PrjCoordSys();
prjCoordSys.FromFile(@"D:\xx2000坐标系.xml", PrjFileType.SuperMap);
pointCloudFileInfo.SrcPrjCoordSys = prjCoordSys;
pointCloudFileInfo.PointDataUnit = DataUnit.Meter;
Dictionary<string, List<string>> groups = new Dictionary<string, List<string>>();
List<string> files = new List<string>();
files.Add(@"D:\PonitCloud.las");
groups.Add("group",files);
pointCloudFileInfo.GroupFileNames = groups;
pointCloudFileInfo.PointDataSeparator = DataSeparator.SPACE;
pointCloudFileInfo.PointInfoType = PointCloudInfoType.XYZ;
pointCloudFileInfo.PointDataRGBMode = DataRGBMode.RGB_0_1;
cacheBuilder.PointCloudTileSplitType = ImageTilingMode.Global;
cacheBuilder.TilePyramidSplitType = PyramidSplitType.QuadTree;
cacheBuilder.ProcessType = ProcessFileType.Normal;
if (cacheBuilder.Build())
{
System.Diagnostics.Debug.WriteLine("成功");
}
else
{
System.Diagnostics.Debug.WriteLine("失败");
}
在执行到cacheBuilder.CategoryField = PointCloudCategoryField.Intensity;时会出现异常
我想问下为什么会这样。还有可以的话请给我一份点云缓存的示例代码。