Skip to content
Permalink
Browse files

QgsOgrProviderMetadata::decodeUri(): do not remove vsi prefix in 'pat…

…h' component. It doesn't enable roundtripping with encodeUri()
  • Loading branch information
rouault authored and nyalldawson committed Oct 5, 2020
1 parent e7a34f3 commit c23843dcd20a89078ee2aa439e7c986042510099
Showing with 0 additions and 4 deletions.
  1. +0 −4 src/core/providers/ogr/qgsogrprovider.cpp
@@ -3496,10 +3496,6 @@ QVariantMap QgsOgrProviderMetadata::decodeUri( const QString &uri )
}
}

QString vsiPrefix = qgsVsiPrefix( path );
if ( !vsiPrefix.isEmpty() )
path = path.mid( vsiPrefix.count() );

QVariantMap uriComponents;
uriComponents.insert( QStringLiteral( "path" ), path );
uriComponents.insert( QStringLiteral( "layerName" ), layerName );

0 comments on commit c23843d

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