Skip to content
Permalink
Browse files
fix #2757
git-svn-id: http://svn.osgeo.org/qgis/trunk@13583 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed May 28, 2010
1 parent b0ab895 commit 10471e794ac5e3d718e704f1835aac1373ee14e2
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/plugins/wfs/qgswfssourceselect.cpp
@@ -370,7 +370,11 @@ void QgsWFSSourceSelect::addLayer()
if ( canvas && mBboxCheckBox->isChecked() )
{
QgsRectangle currentExtent = canvas->extent();
bBoxString = QString( "&BBOX=%1,%2,%3,%4" ).arg( currentExtent.xMinimum() ).arg( currentExtent.yMinimum() ).arg( currentExtent.xMaximum() ).arg( currentExtent.yMaximum() );
bBoxString = QString( "&BBOX=%1,%2,%3,%4" )
.arg( currentExtent.xMinimum(), 0, 'f' )
.arg( currentExtent.yMinimum(), 0, 'f' )
.arg( currentExtent.xMaximum(), 0, 'f' )
.arg( currentExtent.yMaximum(), 0, 'f' );
}
mIface->addVectorLayer( uri + "SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=" + typeName + crsString + bBoxString, typeName, "WFS" );
}

0 comments on commit 10471e7

Please sign in to comment.