Skip to content
Permalink
Browse files

[saveas] changes to default sqlite/spatialite values

  • Loading branch information
mach0 authored and m-kuhn committed Nov 21, 2013
1 parent 366375b commit c8c2ba28012c6f85b4249afbf6216d26929a8243
Showing with 12 additions and 16 deletions.
  1. +12 −16 src/core/qgsvectorfilewriter.cpp
@@ -1292,9 +1292,15 @@ QMap<QString, QgsVectorFileWriter::MetaData> QgsVectorFileWriter::initMetaData()
"NO"
) );

layerOptions.insert( "FORMAT", new HiddenOption(
"WKT"
) );
layerOptions.insert( "FORMAT", new SetOption(
QObject::tr( "Controls the format used for the geometry column. Defaults to WKB."
"This is generally more space and processing efficient, but harder "
"to inspect or use in simple applications than WKT (Well Known Text)."),
QStringList()
<< "WKB"
<< "WKT"
, "WKB" // Default value
) );

layerOptions.insert( "LAUNDER", new BoolOption(
QObject::tr( "Controls whether layer and field names will be laundered for easier use "
@@ -1360,19 +1366,9 @@ QMap<QString, QgsVectorFileWriter::MetaData> QgsVectorFileWriter::initMetaData()
, true // Default value
) );

layerOptions.insert( "FORMAT", new SetOption(
QObject::tr( "Controls the format used for the geometry column. By default we assume "
"that an SpatiaLite database will be created. SpatiaLite extension uses "
"its own binary format to store geometries. Set to WKB (Well Known Binary) "
"if you only want to export a SQlite database. This is generally more space "
"and processing efficient, but harder to inspect or use in simple applications "
"than WKT (Well Known Text)."),
QStringList()
<< "WKB"
<< "WKT"
<< "SPATIALITE"
, "SPATIALITE" // Default value
) );
layerOptions.insert( "FORMAT", new HiddenOption(
"SPATIALITE"
) );

layerOptions.insert( "LAUNDER", new BoolOption(
QObject::tr( "Controls whether layer and field names will be laundered for easier use "

0 comments on commit c8c2ba2

Please sign in to comment.
You can’t perform that action at this time.