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

Even Rouault even.rouault at spatialys.com
Tue May 22 00:18:19 PDT 2018


On mardi 22 mai 2018 08:41:35 CEST Martin Landa wrote:
> https://github.com/OSGeo/gdal/blob/master/gdal/ogr/ogrsf_frmts/vfk/
vfkreader
> .cpp#L82

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.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180522/391d0085/attachment.html>


More information about the gdal-dev mailing list