Changeset 1164:ea9f82ad5d60
- Timestamp:
- 04/16/09 15:44:17 (16 months ago)
- Branch:
- default
- Convert:
- svn:1766ff46-f334-0410-ab20-d63176f87757/trunk@1229
- File:
-
- 1 edited
-
apps/ts2las.cpp (modified) (6 diffs)
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 // 2 13 #include "ts2las.hpp" 3 14 … … 6 17 #include <string> 7 18 8 // from http://cdn.terrasolid.fi/tscan.pdf9 10 19 using namespace liblas; 11 12 20 13 21 std::istream* OpenInput(std::string filename) … … 82 90 header.SetScale(scale, scale, scale); 83 91 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; 85 95 86 96 return header; 87 97 } 88 bool ReadHeader(ScanHdr* hdr, std::istream* istrm) { 89 90 try { 98 99 bool ReadHeader(ScanHdr* hdr, std::istream* istrm) 100 { 101 try 102 { 91 103 liblas::detail::read_n(*hdr, *istrm, sizeof(ScanHdr)); 92 104 … … 112 124 bool WritePoints(LASWriter* writer, std::istream* strm, ScanHdr* hdr) 113 125 { 114 while (true) {115 126 while (true) 127 { 116 128 117 129 ///std::cout << "We have header version" << std::endl; … … 230 242 std::string output; 231 243 232 for (int i = 1; i < argc; i++) { 244 for (int i = 1; i < argc; i++) 245 { 233 246 if ( strcmp(argv[i],"-h") == 0 || 234 247 strcmp(argv[i],"--help") == 0 … … 301 314 return rc; 302 315 } 316
Note: See TracChangeset
for help on using the changeset viewer.
