2
using System.Collections.Generic;
12
static void Main(string[] args)
17
string filename = @".\test.las";
18
LASHeader hdr = new LASHeader();
21
hdr.DataFormatId = (byte)LASHeader.PointFormat.ePointFormat1;
22
hdr.PointRecordsCount = 1000; // should be corrected automatically by writer
23
LASWriter laswriter = new LASWriter(filename, hdr, LASReadWriteMode.LASModeWrite);
24
LASPoint p=new LASPoint();
28
laswriter.WritePoint(p);
29
//File.Delete(filename);
32
catch (LASException e)
34
Console.WriteLine("\nLASException! Msg: {0}", e.Message);
36
catch (SystemException e)
38
Console.WriteLine("\nException! Msg: {0}", e.Message);
42
Console.WriteLine("Unknown exception caught");
45
Console.WriteLine("End of file");