Skip to content

Commit

Permalink
QgsOgrProviderMetadata::decodeUri(): do not remove vsi prefix in 'pat…
Browse files Browse the repository at this point in the history
…h' component. It doesn't enable roundtripping with encodeUri()
  • Loading branch information
rouault authored and nyalldawson committed Oct 5, 2020
1 parent e7a34f3 commit c23843d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/core/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit c23843d

Please sign in to comment.