Skip to content

Commit d8dc0f9

Browse files
committed
Make gpkg the first choice for processing vector outputs
1 parent a48c2e8 commit d8dc0f9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/core/qgsvectorfilewriter.cpp

+7-2
Original file line numberDiff line numberDiff line change
@@ -2735,6 +2735,10 @@ QStringList QgsVectorFileWriter::supportedFormatExtensions()
27352735
continue;
27362736

27372737
QString matched = match.captured( 1 );
2738+
2739+
// special handling for the two main contenders for glory
2740+
if ( matched.compare( QStringLiteral( "gpkg" ), Qt::CaseInsensitive ) == 0 )
2741+
continue;
27382742
if ( matched.compare( QStringLiteral( "shp" ), Qt::CaseInsensitive ) == 0 )
27392743
continue;
27402744

@@ -2743,8 +2747,9 @@ QStringList QgsVectorFileWriter::supportedFormatExtensions()
27432747

27442748
std::sort( extensions.begin(), extensions.end() );
27452749

2746-
// Make https://twitter.com/shapefiIe a happy little fellow
2747-
extensions.insert( 0, QStringLiteral( "shp" ) );
2750+
// Make https://twitter.com/shapefiIe a sad little fellow
2751+
extensions.insert( 0, QStringLiteral( "gpkg" ) );
2752+
extensions.insert( 1, QStringLiteral( "shp" ) );
27482753
return extensions;
27492754
}
27502755

0 commit comments

Comments
 (0)