[gdal-dev] CPLStat + VSI_REG fails on larger files on Windows

Martin Landa landa.martin at gmail.com
Tue May 22 04:23:44 PDT 2018


Hi,

2018-05-22 9:18 GMT+02:00 Even Rouault <even.rouault at spatialys.com>:
> 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


More information about the gdal-dev mailing list