public void TestDefault() { LASVariableLengthRecord vlr = new LASVariableLengthRecord(); Assert.AreEqual(vlr.RecordId, 0); Assert.AreEqual(vlr.RecordLength, 0); Assert.AreEqual(vlr.Reserved, 0); Assert.AreEqual(vlr.UserId, ""); Assert.AreEqual(vlr.Description, ""); }
/// <summary> /// Adds a variable length record instance to the header. /// </summary> /// <param name="variableLengthRecord">variable Length record instance to add</param> public void AddVariableLengthRecord(LASVariableLengthRecord variableLengthRecord) { LASError error = CAPI.LASHeader_AddVLR(hHeader, variableLengthRecord.GetPointer()); if ((Int32)error != 0) { LASException e = new LASException("Exception in Header AddVariableLengthRecord."); throw e; } }
/// <summary> /// Adds a variable length record instance to the header. /// </summary> /// <param name="variableLengthRecord">variable Length record instance to add</param> public void AddVariableLengthRecord(LASVariableLengthRecord variableLengthRecord) { LASError error = NativeMethods.LASHeader_AddVLR(hHeader, variableLengthRecord.GetPointer()); if ((Int32)error != 0) { LASException e = new LASException("Exception in Header AddVariableLengthRecord."); throw e; } }