Skip to content

Commit

Permalink
fix: correct assignment of RasterIOHelper target_height
Browse files Browse the repository at this point in the history
This typo didn't usually cause problems, except when a query was partially outside of the data range, in which case it could result in malformed data or an error (when it made the query window too large).
  • Loading branch information
kb173 committed Aug 3, 2023
1 parent 2f30af0 commit c115e6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/raster-tile-extractor/GeoRaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ RasterIOHelper GeoRaster::get_raster_io_helper() {
result.min_raster_size = min_raster_size;
result.remainder_x_left = remainder_x_left;
result.remainder_y_top = remainder_y_top;
result.target_height = target_width;
result.target_height = target_height;
result.target_width = target_width;
result.usable_height = usable_height;
result.usable_width = usable_width;

return result;
}

Expand Down

0 comments on commit c115e6f

Please sign in to comment.