Skip to content

Commit

Permalink
Preserve shapefile field names case on export
Browse files Browse the repository at this point in the history
  • Loading branch information
strk authored and nyalldawson committed Jun 3, 2024
1 parent 56195a9 commit 7c69f92
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/core/vector/qgsvectorlayerexporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,16 +337,6 @@ Qgis::VectorExportResult QgsVectorLayerExporter::exportLayer( QgsVectorLayer *la

Qgis::WkbType wkbType = layer->wkbType();

// Special handling for Shapefiles
if ( layer->providerType() == QLatin1String( "ogr" ) && layer->storageType() == QLatin1String( "ESRI Shapefile" ) )
{
// convert field names to lowercase
for ( int fldIdx = 0; fldIdx < fields.count(); ++fldIdx )
{
fields.rename( fldIdx, fields.at( fldIdx ).name().toLower() );
}
}

bool convertGeometryToSinglePart = false;
if ( forceSinglePartGeom && QgsWkbTypes::isMultiType( wkbType ) )
{
Expand Down

0 comments on commit 7c69f92

Please sign in to comment.