laswriter_txt.hpp
Go to the documentation of this file.
1 /*
2 ===============================================================================
3 
4  FILE: laswriter_txt.hpp
5 
6  CONTENTS:
7 
8  Writes LIDAR points from to ASCII through on-the-fly conversion from LAS.
9 
10  PROGRAMMERS:
11 
12  martin.isenburg@gmail.com
13 
14  COPYRIGHT:
15 
16  (c) 2007-2011, Martin Isenburg, LASSO - tools to catch reality
17 
18  This is free software; you can redistribute and/or modify it under the
19  terms of the GNU Lesser General Licence as published by the Free Software
20  Foundation. See the COPYING file for more information.
21 
22  This software is distributed WITHOUT ANY WARRANTY and without even the
23  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24 
25  CHANGE HISTORY:
26 
27  10 April 2011 -- created after a sunny weekend of biking to/from Buergel
28 
29 ===============================================================================
30 */
31 #ifndef LAS_WRITER_TXT_HPP
32 #define LAS_WRITER_TXT_HPP
33 
34 #include "laswriter.hpp"
35 
36 #include <stdio.h>
37 
38 class LASwriterTXT : public LASwriter
39 {
40 public:
41 
42  BOOL refile(FILE* file);
43 
44  BOOL open(const char* file_name, const LASheader* header, const char* parse_string=0, const char* separator=0);
45  BOOL open(FILE* file, const LASheader* header, const char* parse_string=0, const char* separator=0);
46 
47  BOOL write_point(const LASpoint* point);
48  BOOL chunk() { return FALSE; };
49 
50  BOOL update_header(const LASheader* header, BOOL use_inventory=TRUE, BOOL update_extra_bytes=FALSE);
51  I64 close(BOOL update_npoints=true);
52 
53  LASwriterTXT();
54  ~LASwriterTXT();
55 
56 private:
58  FILE* file;
59  const LASheader* header;
60  char* parse_string;
62  char printstring[512];
65  BOOL unparse_extra_attribute(const LASpoint* point, I32 index);
66 };
67 
68 #endif
LASheader
Definition: lasdefinitions.hpp:952
LASwriterTXT::check_parse_string
BOOL check_parse_string(const char *parse_string)
Definition: laswriter_txt.cpp:447
LASpoint
Definition: lasdefinitions.hpp:472
LASwriterTXT::extra_attribute_array_offsets
I32 extra_attribute_array_offsets[10]
Definition: laswriter_txt.hpp:63
LASwriterTXT::file
FILE * file
Definition: laswriter_txt.hpp:58
LASwriterTXT::parse_string
char * parse_string
Definition: laswriter_txt.hpp:60
LASwriterTXT::~LASwriterTXT
~LASwriterTXT()
Definition: laswriter_txt.cpp:442
I64
long long I64
Definition: mydefs.hpp:48
I32
int I32
Definition: mydefs.hpp:35
TRUE
#define TRUE
Definition: mydefs.hpp:137
LASwriterTXT::update_header
BOOL update_header(const LASheader *header, BOOL use_inventory=TRUE, BOOL update_extra_bytes=FALSE)
Definition: laswriter_txt.cpp:404
LASwriterTXT::write_point
BOOL write_point(const LASpoint *point)
Definition: laswriter_txt.cpp:302
LASwriterTXT::close
I64 close(BOOL update_npoints=true)
Definition: laswriter_txt.cpp:409
LASwriterTXT::LASwriterTXT
LASwriterTXT()
Definition: laswriter_txt.cpp:434
LASwriter
Definition: laswriter.hpp:47
laswriter.hpp
LASwriterTXT::unparse_extra_attribute
BOOL unparse_extra_attribute(const LASpoint *point, I32 index)
Definition: laswriter_txt.cpp:176
LASwriterTXT::chunk
BOOL chunk()
Definition: laswriter_txt.hpp:48
BOOL
int BOOL
Definition: mydefs.hpp:57
LASwriterTXT::close_file
BOOL close_file
Definition: laswriter_txt.hpp:57
LASwriterTXT::printstring
char printstring[512]
Definition: laswriter_txt.hpp:62
FALSE
#define FALSE
Definition: mydefs.hpp:133
LASwriterTXT::header
const LASheader * header
Definition: laswriter_txt.hpp:59
LASwriterTXT
Definition: laswriter_txt.hpp:38
LASwriterTXT::refile
BOOL refile(FILE *file)
Definition: laswriter_txt.cpp:36
LASwriterTXT::open
BOOL open(const char *file_name, const LASheader *header, const char *parse_string=0, const char *separator=0)
Definition: laswriter_txt.cpp:42
LASwriterTXT::separator_sign
char separator_sign
Definition: laswriter_txt.hpp:61


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:24