[Liblas-commits] hg-main-tree: sync with Dimension:: changes
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed Apr 13 13:50:42 EDT 2011
details: http://hg.libpc.orghg-main-tree/rev/033bb6a053b5
changeset: 548:033bb6a053b5
user: Michael P. Gerlek <mpg at flaxen.com>
date: Wed Apr 13 10:50:37 2011 -0700
description:
sync with Dimension:: changes
diffstat:
apps/pcview/main.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r 07cdaae4dbee -r 033bb6a053b5 apps/pcview/main.cpp
--- a/apps/pcview/main.cpp Wed Apr 13 08:00:19 2011 -0600
+++ b/apps/pcview/main.cpp Wed Apr 13 10:50:37 2011 -0700
@@ -140,9 +140,9 @@
const boost::int32_t yraw = buffer.getField<boost::int32_t>(i, offsetY);
const boost::int32_t zraw = buffer.getField<boost::int32_t>(i, offsetZ);
- const double x = schema.getDimension(offsetX).getNumericValue<boost::int32_t>(xraw);
- const double y = schema.getDimension(offsetY).getNumericValue<boost::int32_t>(yraw);
- const double z = schema.getDimension(offsetZ).getNumericValue<boost::int32_t>(zraw);
+ const double x = schema.getDimension(offsetX).applyScaling(xraw);
+ const double y = schema.getDimension(offsetY).applyScaling(yraw);
+ const double z = schema.getDimension(offsetZ).applyScaling(zraw);
points[cnt++] = (float)x;
points[cnt++] = (float)y;
More information about the Liblas-commits
mailing list