Re: [rasterio-dev] debugging build_overviews
toggle quoted messageShow quoted text
Let's try to answer your questions on the main discussion group. The dev group is for discussing development of the library itself: new API methods, infrastructure, governance, &c. I've cross-posted to email@example.com.
Yes, if you configure and build a debug-enabled version of GDAL (see the GDAL wiki for instructions) and build Rasterio using that build you can run your program under gdb or lldb and set breakpoints in Rasterio and GDAL. However, there is very little logic in the Rasterio code around building overviews:
We do some pre-overview error handling and then call GDALBuildOverviews:
I have seen various reports of overview bugs in the old GDAL tracker, mostly fixed, but maybe there is a lingering one in your case. It may be worth a check in the tracker for open issues or ones that sound familiar.
Simpler than using a debugger: add some logging statements to rasterio/_io.pyx in a custom build of Rasterio to report the overview factors and resampling method passed to GDALBuildOverviews.
On Wed, Jan 2, 2019 at 1:59 AM Guy Doulberg <guyd@...> wrote: