public static Point LasUtmOfLonLat(string lasPath)
{
string fileName = lasPath;
double[] X; // 实际三维坐标
double[] Y;
double[] Z;
UInt32 pointNum; //点数据个数
if (fileName != "")
{
// 定义读写流
FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fs);
/*****************************************************************************/
#region // 读取公共头
char[] ch = new char[4]; // las文件标记 "LASF" 4字节
string strFileSignature = "";
for (int i = 0; i < 4; i++)
{
ch[i] = br.ReadChar();
strFileSignature += ch[i];
}
byte[] by = br.ReadBytes(20); // 包括保留字段,项目ID
int v1 = (int)br.ReadByte(); // las文件版本
int v2 = (int)br.ReadByte();
string version = v1.ToString() + "." + v2.ToString();
byte[] by2 = br.ReadBytes(32); // 系统标志符
byte[] by3 = br.ReadBytes(32); // 生成软件
UInt16 fileCreatDay = br.ReadUInt16(
c#解析las点云坐标
最新推荐文章于 2025-03-30 11:38:58 发布