Hi, 2018-05-22 9:18 GMT+02:00 Even Rouault <[email protected]>: > CPLStat() ultimately calls _wstat() on Windows. Looking at > > https://docs.microsoft.com/en-gb/cpp/c-runtime-library/reference/stat-functions > , it seems it can only deal with 32-bit file length > > > > You could just replace your CPLStat() call with VSIStatL() (and use a > VSIStatBufL structure) that will use a 64-bit ready Windows API underneath.
thanks for explanation, should be fixed in [1]. Issue open [2] due backports. Ma [1] https://github.com/OSGeo/gdal/commit/6a2e8bc23a5e72753f7222b6e59c081cc2f076a0 [2] https://github.com/OSGeo/gdal/issues/637 -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.cz/mentors/landa _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
