Skip to content

Commit e10bd31

Browse files
rouaultnyalldawson
authored andcommittedApr 24, 2023
[WFS / OAPIF] GUI: pass selected CRS to query builder UI
1 parent 9cb36b0 commit e10bd31

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/providers/wfs/qgswfssourceselect.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,11 @@ void QgsWFSSourceSelect::buildQuery( const QModelIndex &index )
565565
QgsWfsConnection connection( cmbConnections->currentText() );
566566
QgsWFSDataSourceURI uri( connection.uri().uri( false ) );
567567
uri.setTypeName( typeName );
568+
if ( gbCRS->isEnabled() )
569+
{
570+
QString crsString = labelCoordRefSys->text();
571+
uri.setSRSName( crsString );
572+
}
568573

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

0 commit comments

Comments
 (0)