Skip to content

Commit

Permalink
[WFS / OAPIF] GUI: pass selected CRS to query builder UI
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault authored and nyalldawson committed Apr 24, 2023
1 parent 9cb36b0 commit e10bd31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/providers/wfs/qgswfssourceselect.cpp
Expand Up @@ -565,6 +565,11 @@ void QgsWFSSourceSelect::buildQuery( const QModelIndex &index )
QgsWfsConnection connection( cmbConnections->currentText() );
QgsWFSDataSourceURI uri( connection.uri().uri( false ) );
uri.setTypeName( typeName );
if ( gbCRS->isEnabled() )
{
QString crsString = labelCoordRefSys->text();
uri.setSRSName( crsString );
}

QModelIndex filterIndex = index.sibling( index.row(), MODEL_IDX_SQL );
QString sql( filterIndex.data().toString() );
Expand Down

0 comments on commit e10bd31

Please sign in to comment.