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, "");
        }
Exemplo n.º 2
0
        /// <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;
            }
        }
Exemplo n.º 3
0
 /// <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;
     }
 }