[pdal-commits] [PDAL/PDAL] b4bda6: Protect GDALWriter from zero-point pipelines (#182...
GitHub
noreply at github.com
Sat Mar 3 07:54:20 PST 2018
Branch: refs/heads/master
Home: https://github.com/PDAL/PDAL
Commit: b4bda6cd8c5b92743ba251f44c5c8f3630ec2b45
https://github.com/PDAL/PDAL/commit/b4bda6cd8c5b92743ba251f44c5c8f3630ec2b45
Author: Pete Gadomski <pete.gadomski at gmail.com>
Date: 2018-03-03 (Sat, 03 Mar 2018)
Changed paths:
M io/GDALWriter.cpp
M test/unit/io/GDALWriterTest.cpp
Log Message:
-----------
Protect GDALWriter from zero-point pipelines (#1825)
The GDALWriter throws a segfault due to an uninitialized `m_grid` member
variable when trying to execute some zero-point pipelines, e.g.:
```bash
pdal translate \
-i test/data/las/no-points.las \
-o /tmp/out.tif \
-f range --filters.range.limits="Classification[2:2]" \
--writers.gdal.resolution=1
```
I *think* this is due to `GDALWriter::writeView` never being called, so
the grid is never initialized.
Includes a test case.
More information about the pdal-commits
mailing list