From bf6b9824de4c605bc759cce2bf777544549c0e2c Mon Sep 17 00:00:00 2001 From: Chris Foster Date: Sat, 29 Jun 2013 23:08:34 +1000 Subject: [PATCH] Allow SRS to be ignored in Mosaic filter Ignoring the SRS is useful when pdal has been compiled without gdal support, and the user knows the inputs have a shared spatial reference system. (Attempting SRS comparison in this case would otherwise result in an exception.) --- src/filters/Mosaic.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/filters/Mosaic.cpp b/src/filters/Mosaic.cpp index e8d8853999..379b736337 100644 --- a/src/filters/Mosaic.cpp +++ b/src/filters/Mosaic.cpp @@ -59,6 +59,7 @@ void Mosaic::initialize() const Stage& stage0 = *stages[0]; const SpatialReference& srs0 = stage0.getSpatialReference(); + const bool ignoreSrs = getOptions().getValueOrDefault("ignore_srs", false); const Schema& schema0 = stage0.getSchema(); PointCountType pointCountType0 = stage0.getPointCountType(); boost::uint64_t totalPoints = stage0.getNumPoints(); @@ -68,7 +69,7 @@ void Mosaic::initialize() for (boost::uint32_t i=1; i