Contents
What does GDAL disable readdir on open do?
By default (GDAL_DISABLE_READDIR_ON_OPEN=FALSE), GDAL establishes a list of all the files in the directory of the file passed to GDALOpen (). This can result in speed-ups in some use cases, but also to major slow downs when the directory contains thousands of other files. When set to TRUE, GDAL will not try to establish the list of files.
How to reduce the size of the GDAL cache?
When set to TRUE, GDAL will not try to establish the list of files. If set to EMPTY_DIR, only the file that is being opened will be seen when a GDAL driver will request sibling files, so this is a way to disable loading side-car/auxiliary files. This option controls the default GDAL raster block cache size.
Which is an example of a configoption in GDAL?
ConfigOptions are normally used to alter the default behavior of GDAL and OGR drivers and in some cases the GDAL and OGR core. They are essentially global variables the user can set. One example of a config option is the GDAL_CACHEMAX option. It controls the size of the GDAL block cache, in megabytes.
Which is the default HTTP version for GDAL?
(GDAL >= 2.3) Can be set to 1.0, 1.1, 2 or 2TLS to specify which HTTP version to use. Will default to 1.1 generally (except on some controlled environments, like Google Compute Engine VMs, where 2TLS will be the default).
Where does GDAL access a standard file system?
GDAL can access files located on “standard” file systems, i.e. in the / hierarchy on Unix-like systems or in C:, D:, etc… drives on Windows. But most GDAL raster and vector drivers use a GDAL-specific abstraction to access files.
How to view a gzipped file as uncompressed in GDAL?
To view a gzipped file as uncompressed by GDAL, you must use the /vsigzip/path/to/the/file.gz syntax, where path/to/the/file.gz is relative or absolute. VSIStatL () will return the uncompressed file size, but this is potentially a slow operation on large files, since it requires uncompressing the whole file.