Skip to content
Permalink
Browse files
Improved port handling for wfs
git-svn-id: http://svn.osgeo.org/qgis/trunk@6952 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed May 22, 2007
1 parent 275f7b0 commit 1938278a7db8762d002b8f53d6eb24a50cd28608
Showing with 9 additions and 8 deletions.
  1. +9 −8 src/providers/wfs/qgswfsdata.cpp
@@ -52,16 +52,17 @@ int QgsWFSData::getWFSData()

//separate host from query string
QUrl requestUrl(mUri);
mHttp.setHost(requestUrl.host(), requestUrl.port());
int portNr = requestUrl.port();
if(portNr != -1)
{
mHttp.setHost(requestUrl.host(), portNr);
}
else
{
mHttp.setHost(requestUrl.host());
}
mHttp.get(mUri);

//just for a test
//QProgressDialog pd;
//pd.setWindowModality(Qt::WindowModal);
//pd.setMaximum(150000000); //shows busy indocator
//QObject::connect(&mHttp, SIGNAL(dataReadProgress(int,int)), &pd, SLOT(setValue(int)));
//pd.show();

//loop to read the data
QByteArray readData;
int atEnd = 0;

0 comments on commit 1938278

Please sign in to comment.