gdal_configurations¶
- pyhelpers.settings.gdal_configurations(reset=False, max_tmpfile_size=None, interleaved_reading=True, custom_indexing=False, compress_nodes=True)[source]¶
Alters some default configuration options of GDAL/OGR drivers.
- Parameters:
reset (bool) – Whether to reset to default settings; defaults to
False
.max_tmpfile_size (int | None) – Maximum size of the temporary file; defaults to
None
.interleaved_reading (bool) – Whether to enable interleaved reading; defaults to
True
.custom_indexing (bool) – Whether to enable custom indexing; defaults to
False
.compress_nodes (bool) – Whether to compress nodes in temporary database; defaults to
True
.
Examples:
>>> from pyhelpers.settings import gdal_configurations >>> gdal_configurations()
Note
These configurations are particularly useful when working with GDAL to process large PBF files. For instance, these settings are applied by default in the pydriosm package for handling OpenStreetMap data in PBF format.