Skip to content
Permalink
Browse files

native wcs request

  • Loading branch information
blazek committed Jul 2, 2012
1 parent 2f761dd commit e8a93145173df0173d8fbf19aca86abef3c97f35
@@ -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 );
@@ -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;
@@ -93,6 +93,7 @@ QgsWcsCapabilities::~QgsWcsCapabilities()
QgsDebugMsg( "deconstructing." );
}

// TODO: return if successful
void QgsWcsCapabilities::setUri( QgsDataSourceURI const &theUri )
{
mUri = theUri;
@@ -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++ )
{
@@ -174,7 +174,6 @@ class QgsWcsCapabilities : public QObject
static QString prepareUri( QString uri );

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

@@ -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
*

0 comments on commit e8a9314

Please sign in to comment.
You can’t perform that action at this time.