Skip to content

Commit fed17aa

Browse files
committed
wcs test - issues descriptions, GDAL WCS comparison
1 parent 593da45 commit fed17aa

5 files changed

Lines changed: 293 additions & 109 deletions

File tree

‎src/providers/wcs/qgswcscapabilities.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ bool QgsWcsCapabilities::parseDescribeCoverageDom10( QByteArray const &xml, QgsW
754754

755755
// may be GTiff, GeoTIFF, TIFF, GIF, ....
756756
coverage->supportedFormat = domElementsTexts( coverageOfferingElement, "supportedFormats.formats" );
757-
//QgsDebugMsg( "supportedFormat = " + coverage->supportedFormat.join( "," ) );
757+
QgsDebugMsg( "supportedFormat = " + coverage->supportedFormat.join( "," ) );
758758

759759
// spatialDomain and Grid/RectifiedGrid are optional according to specificationi.
760760
// If missing, we cannot get native resolution and size.

‎src/providers/wcs/qgswcsprovider.cpp‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,11 +804,17 @@ void QgsWcsProvider::cacheReplyFinished()
804804
QgsDebugMsg( "contentType: " + contentType );
805805

806806
// Exception
807+
// Content type examples: text/xml
808+
// application/vnd.ogc.se_xml;charset=UTF-8
809+
// application/xml
807810
if ( contentType.startsWith( "text/", Qt::CaseInsensitive ) ||
808-
contentType.toLower() == "application/vnd.ogc.se_xml" )
811+
contentType.toLower() == "application/xml" ||
812+
contentType.startsWith( "application/vnd.ogc.se_xml", Qt::CaseInsensitive ) )
809813
{
810814
QByteArray text = mCacheReply->readAll();
811-
if (( contentType.toLower() == "text/xml" || contentType.toLower() == "application/vnd.ogc.se_xml" )
815+
if (( contentType.toLower() == "text/xml" ||
816+
contentType.toLower() == "application/xml" ||
817+
contentType.startsWith( "application/vnd.ogc.se_xml", Qt::CaseInsensitive ) )
812818
&& parseServiceExceptionReportDom( text ) )
813819
{
814820
QgsMessageLog::logMessage( tr( "Map request error (Title:%1; Error:%2; URL: %3)" )

0 commit comments

Comments
 (0)