Skip to content

Commit b554b74

Browse files
committedMay 13, 2019
Add WFS3 (experimental) to supported OGR protocols
Quickest way to implement a test client.
1 parent e693e81 commit b554b74

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed
 

‎src/gui/ogr/qgsogrhelperfunctions.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@ QString createProtocolURI( const QString &type, const QString &url, const QStri
269269
{
270270
uri = QStringLiteral( "DODS:%1" ).arg( url );
271271
}
272+
else if ( type == QLatin1String( "WFS3" ) )
273+
{
274+
uri = QStringLiteral( "WFS3:%1" ).arg( url );
275+
}
272276
QgsDebugMsg( "Connection type is=" + type + " and uri=" + uri );
273277
// Update URI with authentication information
274278
if ( ! configId.isEmpty() )

‎src/providers/gdal/qgsgdalsourceselect.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ QgsGdalSourceSelect::QgsGdalSourceSelect( QWidget *parent, Qt::WindowFlags fl, Q
3636
whileBlocking( radioSrcFile )->setChecked( true );
3737
protocolGroupBox->hide();
3838

39-
QStringList protocolTypes = QString( "HTTP/HTTPS/FTP,vsicurl;AWS S3,vsis3;Google Cloud Storage,vsigs;" ).split( ';' );
39+
QStringList protocolTypes = QStringLiteral( "HTTP/HTTPS/FTP,vsicurl;AWS S3,vsis3;Google Cloud Storage,vsigs" ).split( ';' );
4040
#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(2,3,0)
41-
protocolTypes += QString( "Microsoft Azure Blob,vsiaz;Alibaba Cloud OSS,vsioss;OpenStack Swift Object Storage,vsiswift;" ).split( ';' );
41+
protocolTypes += QStringLiteral( "Microsoft Azure Blob,vsiaz;Alibaba Cloud OSS,vsioss;OpenStack Swift Object Storage,vsiswift" ).split( ';' );
4242
#endif
4343
for ( int i = 0; i < protocolTypes.count(); i++ )
4444
{

‎src/providers/ogr/qgsogrsourceselect.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ QgsOgrSourceSelect::QgsOgrSourceSelect( QWidget *parent, Qt::WindowFlags fl, Qgs
100100
}
101101

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

0 commit comments

Comments
 (0)
Please sign in to comment.