[Liblas-commits] hg: 2 new changesets

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Nov 4 10:22:20 EDT 2010


changeset a2a2c9deed0c in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=a2a2c9deed0c
summary: more verbose output

changeset 7584c0069580 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=7584c0069580
summary: use the writer's header for ReprojectionTransform

diffstat:

 apps/las2las-old.c |  4 ++--
 src/laswriter.cpp  |  2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 6f96b326bc0e -r 7584c0069580 apps/las2las-old.c
--- a/apps/las2las-old.c	Wed Nov 03 14:49:52 2010 -0500
+++ b/apps/las2las-old.c	Thu Nov 04 09:22:07 2010 -0500
@@ -880,7 +880,7 @@
         } else {
             if (verbose) {
                 fprintf(stderr, 
-                    "Setting xyz offset to commandline-assigned values...\n");
+                    "Setting xyz offset to %.8f %.8f %.8f...\n", xyz_offset[0], xyz_offset[1], xyz_offset[2]);
             }
             LASHeader_SetOffset(surviving_header,
                                 xyz_offset[0],
@@ -892,7 +892,7 @@
     if (do_set_scale) {
         if (verbose) {
             fprintf(stderr, 
-                "Setting xyz scale...\n");
+                "Setting xyz scale to %.8f %.8f %.8f...\n", xyz_scale[0], xyz_scale[1], xyz_scale[2]);
         }
         LASHeader_SetScale( surviving_header, 
                             xyz_scale[0],
diff -r 6f96b326bc0e -r 7584c0069580 src/laswriter.cpp
--- a/src/laswriter.cpp	Wed Nov 03 14:49:52 2010 -0500
+++ b/src/laswriter.cpp	Thu Nov 04 09:22:07 2010 -0500
@@ -187,7 +187,7 @@
     }
     
     // overwrite our reprojection transform
-    m_reprojection_transform = TransformPtr(new ReprojectionTransform(m_in_srs, m_out_srs));
+    m_reprojection_transform = TransformPtr(new ReprojectionTransform(m_in_srs, m_out_srs, m_header));
     
     if (m_transforms != 0) {
         if (m_transforms->size() > 0) {


More information about the Liblas-commits mailing list