Skip to content

Commit

Permalink
Use raster width rather than block width when iterating source raster
Browse files Browse the repository at this point in the history
in case of raster/block width mismatch.
Close #2448
  • Loading branch information
abellgithub committed Apr 9, 2019
1 parent 640c39d commit 1f873c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdal/GDALUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ friend class Raster;
int partialRowElts = m_xBlockSize * x;

auto si = sourceBegin + (wholeRowElts + partialRowElts);
std::transform(si, si + m_xBlockSize, di,
std::transform(si, si + xWidth, di,
[srcNoData, dstNoData](ITER_VAL<SOURCE_ITER> s){
T t;

Expand Down

0 comments on commit 1f873c6

Please sign in to comment.