mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
WMS 1.3.0 compliance: CRS:84 needs to be supported
This commit is contained in:
parent
ae64430719
commit
4659fd40d2
@ -65,6 +65,9 @@ void QgsConfigParserUtils::appendCrsElementsToLayer( QDomElement& layerElement,
|
||||
appendCrsElementToLayer( layerElement, CRSPrecedingElement, crs, doc );
|
||||
}
|
||||
}
|
||||
|
||||
//Support for CRS:84 is mandatory (equals EPSG:4326 with reversed axis)
|
||||
appendCrsElementToLayer( layerElement, CRSPrecedingElement, QString( "CRS:84" ), doc );
|
||||
}
|
||||
|
||||
void QgsConfigParserUtils::appendCrsElementToLayer( QDomElement& layerElement, const QDomElement& precedingElement,
|
||||
|
@ -2047,6 +2047,11 @@ int QgsWmsServer::configureMapRender( const QPaintDevice* paintDevice ) const
|
||||
QgsUnitTypes::DistanceUnit mapUnits = QgsUnitTypes::DistanceDegrees;
|
||||
|
||||
QString crs = mParameters.value( QStringLiteral( "CRS" ), mParameters.value( QStringLiteral( "SRS" ) ) );
|
||||
if ( crs.compare( "CRS:84", Qt::CaseInsensitive ) == 0 )
|
||||
{
|
||||
crs = QString( "EPSG:4326" );
|
||||
mapExtent.invert();
|
||||
}
|
||||
|
||||
QgsCoordinateReferenceSystem outputCRS;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user