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
…#2450)

in case of raster/block width mismatch.
Close #2448
  • Loading branch information
abellgithub committed Apr 9, 2019
1 parent e711d43 commit 4c40187
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 4c40187

Please sign in to comment.