File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -843,6 +843,17 @@ class QgsVectorFileWriterMetadataContainer
843
843
QStringLiteral ( " COMMA" ) // Default value
844
844
) );
845
845
846
+ #if defined(GDAL_COMPUTE_VERSION) && GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(2,3,0)
847
+ layerOptions.insert ( QStringLiteral ( " STRING_QUOTING" ), new QgsVectorFileWriter::SetOption (
848
+ QObject::tr ( " Double-quote strings. IF_AMBIGUOUS means that string values that look like numbers will be quoted." ),
849
+ QStringList ()
850
+ << QStringLiteral ( " IF_NEEDED" )
851
+ << QStringLiteral ( " IF_AMBIGUOUS" )
852
+ << QStringLiteral ( " ALWAYS" ),
853
+ QStringLiteral ( " IF_AMBIGUOUS" ) // Default value
854
+ ) );
855
+ #endif
856
+
846
857
layerOptions.insert ( QStringLiteral ( " WRITE_BOM" ), new QgsVectorFileWriter::BoolOption (
847
858
QObject::tr ( " Write a UTF-8 Byte Order Mark (BOM) at the start of the file." ),
848
859
false // Default value
You can’t perform that action at this time.
0 commit comments