Skip to content

Commit

Permalink
wms provider: also include SCALE parameter for UMN mapserver (followup
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 20, 2014
1 parent 85a17c2 commit 9f3e8f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -4719,7 +4719,10 @@ QImage QgsWmsProvider::getLegendGraphic( double scale, bool forceRefresh )
if ( mDpiMode & dpiQGIS )
setQueryItem( url, "DPI", QString::number( defaultLegendGraphicResolution ) );
if ( mDpiMode & dpiUMN )
{
setQueryItem( url, "MAP_RESOLUTION", QString::number( defaultLegendGraphicResolution ) );
setQueryItem( url, "SCALE", QString::number( scale, 'f' ) );
}
if ( mDpiMode & dpiGeoServer )
{
setQueryItem( url, "FORMAT_OPTIONS", QString( "dpi:%1" ).arg( defaultLegendGraphicResolution ) );
Expand Down

0 comments on commit 9f3e8f4

Please sign in to comment.