GDAL Options
Each gdal driver has a set of specific options to modify the behavior of the driver. Since version 7.408 these options can be configured in the GeoDMS.
Consult the vector drivers and/or raster drivers specification of the driver to see what options are supported.
Options are configured as parameter (1 option) or attribute (1 or more options). If configured as attribute the domain-unit is usually named: optionSet.
An important distinction is made between open/read options for reading data with GDAL and creations options for writing data with GDAL.
open/read options
Open/read options are configured with tree-item-name: GDAL_Options.
The following examples show how to configure the option for reading a csv file without a header:
1. parameter<string> GDAL_Options: [ 'HEADERS=NO']; 2. unit<uint32> optionSet := range(uint32, 0, 1); attribute<string> GDAL_Options (optionSet) : [ 'HEADERS=NO'];
create/write options
Create/write options are configured with tree-item-name: GDAL_LayerCreationOptions.
The following examples show how to configure the option for writing a csv file with a comma as separator:
1. parameter<string> GDAL_LayerCreationOptions: [ 'SEPARATOR=COMMA']; 2. unit<uint32> optionSet := range(uint32, 0, 1); attribute<string> GDAL_LayerCreationOptions (optionSet) : [ 'SEPARATOR=COMMA'];
configuration options
GDAL configuration options are configured with tree-item-name: GDAL_ConfigurationOptions. For instance setting SQLite journal file to ‘OFF’:
1. parameter<string> GDAL_ConfigurationOptions: ['OGR_SQLITE_JOURNAL=OFF'];
combining options
Options can be combined, for multiple options always use an attribute. The following example shows the configuration of reading a geoTiff with LZW compression, predictor level 2 and multithreading:
unit<uint32> optionSet := range(uint32, 0, 3); attribute<string> GDAL_Options (optionSet): ['NUM_THREADS=ALL_CPUS', 'COMPRESS=LZW', 'PREDICTOR=2'];