[Liblas-commits] hg-main-tree: typo
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed Jun 15 17:08:05 EDT 2011
details: http://hg.libpc.orghg-main-tree/rev/3cc6c6f24a71
changeset: 788:3cc6c6f24a71
user: Howard Butler <hobu.inc at gmail.com>
date: Wed Jun 15 15:55:12 2011 -0500
description:
typo
Subject: hg-main-tree: make sure to set the stages SpatialReference to the output SpatialReference
details: http://hg.libpc.orghg-main-tree/rev/2b533b1112cf
changeset: 789:2b533b1112cf
user: Howard Butler <hobu.inc at gmail.com>
date: Wed Jun 15 16:07:38 2011 -0500
description:
make sure to set the stages SpatialReference to the output SpatialReference
Subject: hg-main-tree: add a EPSG:4326 file to be able to test with
details: http://hg.libpc.orghg-main-tree/rev/3b49af886595
changeset: 790:3b49af886595
user: Howard Butler <hobu.inc at gmail.com>
date: Wed Jun 15 16:07:51 2011 -0500
description:
add a EPSG:4326 file to be able to test with
diffstat:
src/filters/ReprojectionFilter.cpp | 14 +++++++++++---
src/filters/ScalingFilter.cpp | 2 +-
test/data/epsg_4326.las | 0
3 files changed, 12 insertions(+), 4 deletions(-)
diffs (46 lines):
diff -r 13b41b933391 -r 3b49af886595 src/filters/ReprojectionFilter.cpp
--- a/src/filters/ReprojectionFilter.cpp Wed Jun 15 11:36:40 2011 -0500
+++ b/src/filters/ReprojectionFilter.cpp Wed Jun 15 16:07:51 2011 -0500
@@ -106,9 +106,16 @@
double maxx = oldBounds.getMaximum(0);
double maxy = oldBounds.getMaximum(1);
double maxz = oldBounds.getMaximum(2);
+
+ try {
- transform(minx, miny, minz);
- transform(maxx, maxy, maxz);
+ transform(minx, miny, minz);
+ transform(maxx, maxy, maxz);
+
+ } catch (pdal::pdal_error&)
+ {
+ return;
+ }
Bounds<double> newBounds(minx, miny, minz, maxx, maxy, maxz);
@@ -162,7 +169,8 @@
}
m_transform_ptr = TransformPtr(OCTNewCoordinateTransformation( m_in_ref_ptr.get(), m_out_ref_ptr.get()), OSRTransformDeleter());
#endif
-
+
+ setSpatialReference(m_outSRS);
return;
}
diff -r 13b41b933391 -r 3b49af886595 src/filters/ScalingFilter.cpp
--- a/src/filters/ScalingFilter.cpp Wed Jun 15 11:36:40 2011 -0500
+++ b/src/filters/ScalingFilter.cpp Wed Jun 15 16:07:51 2011 -0500
@@ -170,7 +170,7 @@
dimYd.setNumericScale(m_scaleY);
dimYd.setNumericOffset(m_offsetY);
dimZd.setNumericScale(m_scaleZ);
- dimZd.setNumericOffset(m_offsetY);
+ dimZd.setNumericOffset(m_offsetZ);
}
else
{
diff -r 13b41b933391 -r 3b49af886595 test/data/epsg_4326.las
Binary file test/data/epsg_4326.las has changed
More information about the Liblas-commits
mailing list