On mardi 22 mai 2018 08:41:35 CEST Martin Landa wrote:
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.
Spatialys - Geospatial professional services