Skip to content
Permalink
Browse files
Further changes to fix ticket #8 (wms not working through a web proxy…
…). Should work now, but needs a bit of testing to be sure, which I'll do over the next few days.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5723 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Aug 22, 2006
1 parent 84c41eb commit 879400db6ed00e1b9ec481ffa52569e0fa56f607
Showing with 17 additions and 4 deletions.
  1. +12 −3 src/gui/qgisapp.cpp
  2. +5 −1 src/gui/qgisapp.h
@@ -1970,7 +1970,11 @@ void QgisApp::addWmsLayer()
wmss->selectedLayers(),
wmss->selectedStylesForSelectedLayers(),
wmss->selectedImageEncoding(),
wmss->selectedCrs()
wmss->selectedCrs(),
wmss->connProxyHost(),
wmss->connProxyPort(),
wmss->connProxyUser(),
wmss->connProxyPass()
);
}
}
@@ -4970,7 +4974,11 @@ void QgisApp::addRasterLayer(QString const & rasterLayerPath,
QStringList const & layers,
QStringList const & styles,
QString const & format,
QString const & crs)
QString const & crs,
QString const & proxyHost,
int proxyPort,
QString const & proxyUser,
QString const & proxyPassword)
{

#ifdef QGISDEBUG
@@ -5000,7 +5008,8 @@ void QgisApp::addRasterLayer(QString const & rasterLayerPath,
#endif

// TODO: Remove the 0 when the raster layer becomes a full provider gateway.
layer = new QgsRasterLayer(0, rasterLayerPath, baseName, providerKey, layers, styles, format, crs);
layer = new QgsRasterLayer(0, rasterLayerPath, baseName, providerKey, layers, styles, format, crs,
proxyHost, proxyPort, proxyUser, proxyPassword);

#ifdef QGISDEBUG
std::cout << "QgisApp::addRasterLayer: Constructed new layer." << std::endl;
@@ -112,7 +112,11 @@ class QgisApp : public QMainWindow, public Ui::QgisAppBase
QStringList const & layers,
QStringList const & styles,
QString const & format,
QString const & crs);
QString const & crs,
QString const & proxyHost = QString(),
int proxyPort = 80,
QString const & proxyUser = QString(),
QString const & proxyPassword = QString());

/** open a raster layer for the given file
@returns false if unable to open a raster layer for rasterFile

0 comments on commit 879400d

Please sign in to comment.