Skip to content


Hide extra encoding option from the vector "save as" dialog
Browse files Browse the repository at this point in the history
There is already another combo box for encoding selection.
  • Loading branch information
wonder-sk committed Jan 23, 2016
1 parent 5512d54 commit a618f85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/qgsvectorfilewriter.cpp
Expand Up @@ -687,6 +687,9 @@ QMap<QString, QgsVectorFileWriter::MetaData> QgsVectorFileWriter::initMetaData()
true // Allow None
) );

// there does not seem to be a reason to provide this option to the user again
// as we set encoding for shapefiles based on "fileEncoding" parameter passed to the writer
#if 0
layerOptions.insert( "ENCODING", new SetOption(
QObject::tr( "set the encoding value in the DBF file. "
"The default value is LDID/87. It is not clear "
Expand All @@ -695,6 +698,7 @@ QMap<QString, QgsVectorFileWriter::MetaData> QgsVectorFileWriter::initMetaData()
<< "LDID/87",
"LDID/87" // Default value
) );

layerOptions.insert( "RESIZE", new BoolOption(
QObject::tr( "Set to YES to resize fields to their optimal size." ),
Expand Down

0 comments on commit a618f85

Please sign in to comment.