Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
|
@@ -1229,7 +1229,8 @@ void QgsWmsCapabilities::parseLayer( const QDomElement &element, QgsWmsLayerProp |
|
|
const QStringList crsList = nodeElement.text().split( QRegExp( "\\s+" ) ); |
|
|
for ( const QString &srs : crsList ) |
|
|
{ |
|
|
layerProperty.crs.push_back( srs ); |
|
|
if ( !layerProperty.crs.contains( srs ) ) |
|
|
layerProperty.crs.push_back( srs ); |
|
|
} |
|
|
} |
|
|
else if ( tagName == QLatin1String( "LatLonBoundingBox" ) ) // legacy from earlier versions of WMS |
|
|
|
@@ -77,6 +77,8 @@ class TestQgsWmsCapabilities: public QObject |
|
|
QCOMPARE( capabilities.supportedLayers()[0].style[1].legendUrl.size(), 1 ); |
|
|
QCOMPARE( capabilities.supportedLayers()[0].style[1].legendUrl[0].onlineResource.xlinkHref, |
|
|
QString( "http://www.example.com/fb.png" ) ); |
|
|
|
|
|
QCOMPARE( capabilities.supportedLayers()[0].crs, QStringList() << QStringLiteral( "EPSG:2056" ) ); |
|
|
} |
|
|
|
|
|
void guessCrs() |
|
|