public void hhhhh() { // LASReader lasreader = new LASReader(@"c:\las\sample_our2.las"); LASReader lasreader = new LASReader(@"C:\las\data\TO_core_last_clip.las"); LASPoint laspoint; //laspoint = lasreader.GetPointAt(0); //Console.WriteLine(laspoint.X + "," + laspoint.Y + "," + laspoint.Z + " " + laspoint.Intensity ); LASHeader lasheader = lasreader.GetHeader(); LASWriter laswriter = new LASWriter(@"c:\las\sample_our.las", lasheader, LASReadWriteMode.LASModeWrite); //LASReader lasreader = new LASReader(@"C:\las\data\TO_core_last_clip.las"); //LASPoint laspoint = new LASPoint(); laspoint = lasreader.GetPointAt(0); //laspoint.X = 23.0; //Assert.AreEqual(laspoint.X, 23.0); //byte gg = laspoint.Classification; //bool d = lasreader.GetNextPoint(); ////d = lasreader.GetNextPoint(); //LASPoint point = lasreader.GetPointAt(1); //Assert.LessOrEqual(Math.Abs(point.X - 630262.30), 0.0001); //Assert.LessOrEqual(Math.Abs(point.Y - 4834500.0), 0.0001); //Assert.LessOrEqual(Math.Abs(point.Z - 51.53), 0.0001); Assert.AreEqual(laspoint.Intensity, 670); // Assert.AreEqual(laspoint.Classification,(byte) 1); //Assert.AreEqual(point.ScanAngleRank, 0); //Assert.AreEqual(point.UserData, 3); //Assert.AreEqual(point.ScanFlags, 9); //Assert.LessOrEqual(Math.Abs(point.Time - 413665.23360000004), 0.0001); }