mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix: Server WMS Dimension nearestValue and multipleValues
* The WMS Dimension GetCapabilities nearestValue attribute has to be 0 or 1 and not 48. * The WMS Dimension GetCapabilities multipleValue attribute does not exist. * The WMS Dimension GetCapabilities multipleValues attribute has to be 0 or 1 and not 49.
This commit is contained in:
parent
ffea349dca
commit
8b13ca6219
@ -1271,8 +1271,8 @@ namespace QgsWms
|
||||
{
|
||||
dimElem.setAttribute( QStringLiteral( "default" ), dim.referenceValue.toString() );
|
||||
}
|
||||
dimElem.setAttribute( QStringLiteral( "multipleValue" ), '1' );
|
||||
dimElem.setAttribute( QStringLiteral( "nearestValue" ), '0' );
|
||||
dimElem.setAttribute( QStringLiteral( "multipleValues" ), QStringLiteral( "1" ) );
|
||||
dimElem.setAttribute( QStringLiteral( "nearestValue" ), QStringLiteral( "0" ) );
|
||||
// values list
|
||||
QStringList strValues;
|
||||
for ( const QVariant &v : values )
|
||||
|
@ -142,7 +142,7 @@ Content-Type: text/xml; charset=utf-8
|
||||
<OnlineResource xlink:href="https://www.qgis.org/?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server_accesscontrol/project_with_dimensions.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetLegendGraphic&LAYER=Contours&FORMAT=image/png&STYLE=default&SLD_VERSION=1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/>
|
||||
</LegendURL>
|
||||
</Style>
|
||||
<Dimension name="elevation" units="meters" unitSymbol="m" nearestValue="48" multipleValue="49">0, 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000</Dimension>
|
||||
<Dimension name="elevation" units="meters" unitSymbol="m" nearestValue="0" multipleValues="1">0, 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000</Dimension>
|
||||
</Layer>
|
||||
<Layer queryable="1">
|
||||
<Name>Slopes</Name>
|
||||
@ -166,7 +166,7 @@ Content-Type: text/xml; charset=utf-8
|
||||
<OnlineResource xlink:href="https://www.qgis.org/?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server_accesscontrol/project_with_dimensions.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetLegendGraphic&LAYER=Slopes&FORMAT=image/png&STYLE=default&SLD_VERSION=1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/>
|
||||
</LegendURL>
|
||||
</Style>
|
||||
<Dimension name="range_elevation" units="meters" unitSymbol="m" nearestValue="48" multipleValue="49">0, 500, 1000, 1500, 2000, 2500, 3000</Dimension>
|
||||
<Dimension name="range_elevation" units="meters" unitSymbol="m" nearestValue="0" multipleValues="1">0, 500, 1000, 1500, 2000, 2500, 3000</Dimension>
|
||||
</Layer>
|
||||
<Layer queryable="1">
|
||||
<Name>dem</Name>
|
||||
|
Loading…
x
Reference in New Issue
Block a user