Changeset 1164:ea9f82ad5d60


Ignore:
Timestamp:
04/16/09 15:44:17 (16 months ago)
Author:
Mateusz Loskot <mateusz@…>
Branch:
default
Convert:
svn:1766ff46-f334-0410-ab20-d63176f87757/trunk@1229
Message:

Added newline at end of ts2las.cpp file. Added copyright and license notice to ts2las.cpp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/ts2las.cpp

    r1153 r1164  
    1  
     1// $Id$ 
     2// 
     3// ts2las translates TerraSolid .bin file to ASPRS LAS file. 
     4// 
     5// TerraSolid format: http://cdn.terrasolid.fi/tscan.pdf 
     6// 
     7// (C) Copyright Howard Butler 2009, hobu.inc@gmail.com 
     8// 
     9// Distributed under the BSD License 
     10// (See accompanying file LICENSE.txt or copy at 
     11// http://www.opensource.org/licenses/bsd-license.php) 
     12// 
    213#include "ts2las.hpp" 
    314 
     
    617#include <string> 
    718 
    8 // from http://cdn.terrasolid.fi/tscan.pdf 
    9  
    1019using namespace liblas; 
    11  
    1220 
    1321std::istream* OpenInput(std::string filename)  
     
    8290    header.SetScale(scale, scale, scale); 
    8391    header.SetOffset(hdr->OrgX*scale, hdr->OrgY*scale, hdr->OrgZ*scale); 
    84     std::cout << "offset x: " << header.GetOffsetX() << " offset y: " << header.GetOffsetY()  << " offset z: " <<header.GetOffsetZ() << std::endl; 
     92    std::cout << "offset x: " << header.GetOffsetX()  
     93              << " offset y: " << header.GetOffsetY()  
     94              << " offset z: " <<header.GetOffsetZ() << std::endl; 
    8595 
    8696    return header; 
    8797} 
    88 bool ReadHeader(ScanHdr* hdr, std::istream* istrm) { 
    89      
    90     try { 
     98 
     99bool ReadHeader(ScanHdr* hdr, std::istream* istrm) 
     100{ 
     101    try 
     102    { 
    91103        liblas::detail::read_n(*hdr, *istrm, sizeof(ScanHdr)); 
    92104         
     
    112124bool WritePoints(LASWriter* writer, std::istream* strm, ScanHdr* hdr)  
    113125{ 
    114     while (true) { 
    115          
     126    while (true) 
     127    { 
    116128 
    117129///std::cout << "We have header version" << std::endl; 
     
    230242    std::string output; 
    231243     
    232     for (int i = 1; i < argc; i++) { 
     244    for (int i = 1; i < argc; i++) 
     245    { 
    233246        if (    strcmp(argv[i],"-h") == 0 || 
    234247                strcmp(argv[i],"--help") == 0 
     
    301314    return rc; 
    302315} 
     316 
Note: See TracChangeset for help on using the changeset viewer.