Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add WFS3 (experimental) to supported OGR protocols
Quickest way to implement a test client.
  • Loading branch information
elpaso committed May 13, 2019
1 parent e693e81 commit b554b74
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/gui/ogr/qgsogrhelperfunctions.cpp
Expand Up @@ -269,6 +269,10 @@ QString createProtocolURI( const QString &type, const QString &url, const QStri
{
uri = QStringLiteral( "DODS:%1" ).arg( url );
}
else if ( type == QLatin1String( "WFS3" ) )
{
uri = QStringLiteral( "WFS3:%1" ).arg( url );
}
QgsDebugMsg( "Connection type is=" + type + " and uri=" + uri );
// Update URI with authentication information
if ( ! configId.isEmpty() )
Expand Down
4 changes: 2 additions & 2 deletions src/providers/gdal/qgsgdalsourceselect.cpp
Expand Up @@ -36,9 +36,9 @@ QgsGdalSourceSelect::QgsGdalSourceSelect( QWidget *parent, Qt::WindowFlags fl, Q
whileBlocking( radioSrcFile )->setChecked( true );
protocolGroupBox->hide();

QStringList protocolTypes = QString( "HTTP/HTTPS/FTP,vsicurl;AWS S3,vsis3;Google Cloud Storage,vsigs;" ).split( ';' );
QStringList protocolTypes = QStringLiteral( "HTTP/HTTPS/FTP,vsicurl;AWS S3,vsis3;Google Cloud Storage,vsigs" ).split( ';' );
#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(2,3,0)
protocolTypes += QString( "Microsoft Azure Blob,vsiaz;Alibaba Cloud OSS,vsioss;OpenStack Swift Object Storage,vsiswift;" ).split( ';' );
protocolTypes += QStringLiteral( "Microsoft Azure Blob,vsiaz;Alibaba Cloud OSS,vsioss;OpenStack Swift Object Storage,vsiswift" ).split( ';' );
#endif
for ( int i = 0; i < protocolTypes.count(); i++ )
{
Expand Down
4 changes: 2 additions & 2 deletions src/providers/ogr/qgsogrsourceselect.cpp
Expand Up @@ -100,9 +100,9 @@ QgsOgrSourceSelect::QgsOgrSourceSelect( QWidget *parent, Qt::WindowFlags fl, Qgs
}

//add protocol drivers
QStringList protocolTypes = QString( "HTTP/HTTPS/FTP,vsicurl;AWS S3,vsis3;Google Cloud Storage,vsigs;" ).split( ';' );
QStringList protocolTypes = QStringLiteral( "HTTP/HTTPS/FTP,vsicurl;AWS S3,vsis3;Google Cloud Storage,vsigs;" ).split( ';' );
#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(2,3,0)
protocolTypes += QString( "Microsoft Azure Blob,vsiaz;Alibaba Cloud OSS,vsioss;OpenStack Swift Object Storage,vsiswift;" ).split( ';' );
protocolTypes += QStringLiteral( "Microsoft Azure Blob,vsiaz;Alibaba Cloud OSS,vsioss;OpenStack Swift Object Storage,vsiswift;WFS3 (experimental),WFS3" ).split( ';' );
#endif
protocolTypes += QgsProviderRegistry::instance()->protocolDrivers().split( ';' );
for ( int i = 0; i < protocolTypes.count(); i++ )
Expand Down

0 comments on commit b554b74

Please sign in to comment.