Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
native wcs request
  • Loading branch information
blazek committed Jul 2, 2012
1 parent 2f761dd commit e8a9314
Show file tree
Hide file tree
Showing 7 changed files with 313 additions and 320 deletions.
5 changes: 5 additions & 0 deletions src/core/qgsdatasourceuri.cpp
Expand Up @@ -709,6 +709,11 @@ void QgsDataSourceURI::setParam( const QString &key, const QStringList &value )
}
}

int QgsDataSourceURI::removeParam( const QString &key )
{
return mParams.remove( key );
}

QString QgsDataSourceURI::param( const QString &key ) const
{
return mParams.value( key );
Expand Down
5 changes: 5 additions & 0 deletions src/core/qgsdatasourceuri.h
Expand Up @@ -75,6 +75,11 @@ class CORE_EXPORT QgsDataSourceURI
void setParam( const QString &key, const QString &value );
void setParam( const QString &key, const QStringList &value );

//! Remove generic param (generic mode)
// \note remove all occurrences of key, returns number of params removed
// \note added in 1.9
int removeParam( const QString &key );

//! Get generic param (generic mode)
// \note added in 1.9
QString param( const QString &key ) const;
Expand Down
3 changes: 2 additions & 1 deletion src/providers/wcs/qgswcscapabilities.cpp
Expand Up @@ -93,6 +93,7 @@ QgsWcsCapabilities::~QgsWcsCapabilities()
QgsDebugMsg( "deconstructing." );
}

// TODO: return if successful
void QgsWcsCapabilities::setUri( QgsDataSourceURI const &theUri )
{
mUri = theUri;
Expand Down Expand Up @@ -511,7 +512,7 @@ void QgsWcsCapabilities::parseCoverageOfferingBrief( QDomElement const & e, QgsW

QDomElement lonLatEnvelopeElement = firstChild( e, "lonLatEnvelope" );

QDomNodeList posNodes = lonLatEnvelopeElement.elementsByTagName( "pos" );
QDomNodeList posNodes = lonLatEnvelopeElement.elementsByTagName( "gml:pos" );
QList<double> lon, lat;
for ( int i = 0; i < posNodes.size(); i++ )
{
Expand Down
3 changes: 2 additions & 1 deletion src/providers/wcs/qgswcscapabilities.h
Expand Up @@ -174,7 +174,6 @@ class QgsWcsCapabilities : public QObject
static QString prepareUri( QString uri );

/**Returns the GetCoverage url
* @added in 1.5
*/
QString getCoverageUrl() const;

Expand All @@ -192,6 +191,8 @@ class QgsWcsCapabilities : public QObject
//! set authorization header
void setAuthorization( QNetworkRequest &request ) const;

QString version() const { return mCapabilities.version; }

/**
* \brief Returns the caption error text for the last error in this provider
*
Expand Down

0 comments on commit e8a9314

Please sign in to comment.