[Liblas-commits] hg: Fix #224 txt2las not writing RGB correctly
(needed to LASPoi...
liblas-commits at liblas.org
liblas-commits at liblas.org
Fri Jun 17 10:26:14 EDT 2011
details: http://hg.liblas.orghg/rev/e32d82df5025
changeset: 2956:e32d82df5025
user: Howard Butler <hobu.inc at gmail.com>
date: Fri Jun 17 09:25:57 2011 -0500
description:
Fix #224 txt2las not writing RGB correctly (needed to LASPoint_SetHeader)
diffstat:
apps/txt2las.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (20 lines):
diff -r a5cca55eeb75 -r e32d82df5025 apps/txt2las.c
--- a/apps/txt2las.c Thu Jun 16 10:59:41 2011 -0500
+++ b/apps/txt2las.c Fri Jun 17 09:25:57 2011 -0500
@@ -816,6 +816,7 @@
while (fgets(line, sizeof(char) * MAX_CHARACTERS_PER_LINE, file_in))
{
point = LASPoint_Create();
+ LASPoint_SetHeader(point, header);
if (parse(parse_string, line, xyz, point, &gps_time))
{
/* init the bounding box */
@@ -867,6 +868,8 @@
while (fgets(line, sizeof(char) * MAX_CHARACTERS_PER_LINE, file_in))
{
point = LASPoint_Create();
+ LASPoint_SetHeader(point, header);
+
if (parse(parse_string, line, xyz, point, &gps_time))
{
/* update bounding box */
More information about the Liblas-commits
mailing list