예제 #1
0
파일: LASHeader.cs 프로젝트: jdauie/cloudae
        public LASVLR[] ReadVLRs(Stream stream)
        {
            var vlrs = new List<LASVLR>((int)m_numberOfVariableLengthRecords);

            if (m_numberOfVariableLengthRecords > 0)
            {
                stream.Seek(m_headerSize, SeekOrigin.Begin);

                using (var reader = new FlexibleBinaryReader(stream))
                {
                    for (int i = 0; i < m_numberOfVariableLengthRecords; i++)
                    {
                        var vlr = reader.ReadObject<LASVLR>();
                        //if (vlr.IsInteresting)
                            vlrs.Add(vlr);
                    }
                }
            }

            return vlrs.ToArray();
        }
예제 #2
0
파일: LASHeader.cs 프로젝트: jdauie/cloudae
        public LASEVLR[] ReadEVLRs(Stream stream)
        {
            var vlrs = new List<LASEVLR>((int)m_numberOfExtendedVariableLengthRecords);

            if (m_numberOfExtendedVariableLengthRecords > 0)
            {
                stream.Seek((long)m_startOfFirstExtendedVariableLengthRecord, SeekOrigin.Begin);

                using (var reader = new FlexibleBinaryReader(stream))
                {
                    for (int i = 0; i < m_numberOfExtendedVariableLengthRecords; i++)
                    {
                        var vlr = reader.ReadObject<LASEVLR>();
                        if (vlr != null)// && vlr.IsInteresting)
                            vlrs.Add(vlr);
                    }
                }
            }

            return vlrs.ToArray();
        }