Changeset 524:35662ac99f16


Ignore:
Timestamp:
04/23/08 13:54:52 (2 years ago)
Author:
Mateusz Loskot <mateusz@…>
Branch:
default
Convert:
svn:1766ff46-f334-0410-ab20-d63176f87757/trunk@589
Message:

Added missing translation of point record members in reader and writer. TODO: How to handle m_record.point_source_id in portable way between LAS 1.0 and 1.1 (see comments in lasreader.cpp and laswriter.cpp.).

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/lasreader.cpp

    r375 r524  
    125125    m_point.SetScanFlags(m_record.flags); 
    126126    m_point.SetClassification(m_record.classification); 
     127    m_point.SetScanAngleRank(m_record.scan_angle_rank); 
     128    m_point.SetUserData(m_record.user_data); 
     129     
     130    // TODO: Are we going to handle m_record.point_source_id ? 
     131 
    127132    m_point.SetTime(time); 
    128133} 
  • src/laswriter.cpp

    r399 r524  
    3131//    std::cout << "Stream Flags: " <<GetStream().flags() << std::endl; 
    3232    // This is the problem 
     33    // TODO - mloskot: What is the problem with the above? 
    3334    m_pimpl->UpdateHeader(m_header); 
    3435} 
     
    5354    m_record.flags = point.GetScanFlags(); 
    5455    m_record.classification = point.GetClassification(); 
     56    m_record.scan_angle_rank = point.GetScanAngleRank(); 
     57    m_record.user_data = point.GetUserData(); 
     58    m_record.point_source_id = 0; // TODO: How to handle this in portable way, for LAS 1.0 and 1.1 
    5559 
    5660    if (m_header.GetDataFormatId() == LASHeader::ePointFormat0) 
Note: See TracChangeset for help on using the changeset viewer.